WhoKnew Views™ | Using the Styling Encyclopedia

Skip to main content
Table of Contents
Print

No-Code CSS Builder: Drag, Drop & Create Professional Styles Without Writing a Single Line

🎨 Your Personal CSS Laboratory

Think Custom CSS requires a computer science degree? Think again. WhoKnew Views™ includes a revolutionary visual CSS builder that transforms complex code into a simple drag-and-drop experience. No typing, no syntax errors, no guesswork—just point, click, and watch your view counter transform in real-time.

💡 What This Tool Does

The Styling Encyclopedia is an interactive playground where you drag CSS properties from a library, adjust their values with sliders, color pickers, and dropdowns, see instant live previews, and then generate production-ready code with a single click. It’s like Photoshop for your view counters—visual, intuitive, and powerful.

🗺️ Accessing the Styling Encyclopedia

To launch the CSS builder:

  1. Go to WhoKnew → WhoKnew Views → Styling tab
  2. Scroll to the “Custom CSS” section at the bottom
  3. Click the “🚀 Explore CSS Gallery” button
  4. Choose the “📚 CSS Encyclopedia” tab
  5. A modal window opens with your personal CSS laboratory

The Encyclopedia runs in a separate dedicated workspace so you can experiment freely without affecting your live site until you’re ready to copy the generated code.

🏗️ The Visual Builder Interface

The Encyclopedia is divided into three main areas that work together seamlessly:

SectionLocationPurpose
🎨 CSS BuilderLeft sidebar (sticky)Drop zone where you build your CSS by dragging properties
👁️ Live PreviewTop rightReal-time preview showing your counter as you build
🧰 Property LibraryBottom right (scrollable)300+ draggable CSS properties organized by category

Understanding the Drop Zone

The CSS Builder drop zone is your workspace. When empty, you’ll see:

  • ⬇️ A large downward arrow
  • “Drag properties here” placeholder text
  • Dashed border indicating it’s ready to receive properties

As you drag properties into this zone, they transform into interactive controls—color pickers, sliders, dropdowns, or text fields—depending on the property type.

🎯 Pro Tip: The Builder Stays In View

The CSS Builder sidebar is sticky-positioned—it stays visible as you scroll through the Property Library below. This means you can drag properties from anywhere in the library without losing sight of your drop zone or generated code.

🧰 Property Library: Your CSS Toolkit

The Property Library contains over 300 CSS properties organized into six categories. Each category has a dedicated tab for easy navigation.

The Six Property Categories

TabIconWhat’s InsideExample Properties
Layout📐Sizing, spacing, positioningPadding, Border Radius, Width, Height, Gap, Position, Z-Index
Colors🎨Backgrounds, borders, text colorsBackground Color, Gradient, Text Color, Border, Border Style
Typography✍️Font styling and text formattingFont Size, Font Weight, Font Family, Letter Spacing, Line Height
Effects✨Shadows, transparency, filtersBox Shadow, Text Shadow, Opacity, Filter, Backdrop Filter
Animations🎬Motion and transitionsTransition, Transform, Animation, Hover Transform
3D🎲Advanced 3D transformsPerspective, Rotate X/Y/Z, Transform Style, Backface Visibility
🔍 What Each Property Card Shows

Every draggable property card displays:

  • Icon emoji (e.g., 🎨 for colors, 🔤 for typography)
  • Property name (e.g., “Background Color”, “Font Size”)
  • Brief description explaining what it does
  • Example values showing typical uses (e.g., “10px 20px” for padding)

Hover over any card to see it lift slightly—your visual cue that it’s draggable.

🖱️ Drag & Drop Workflow: Step-by-Step

Building custom CSS is as easy as five mouse actions:

Step 1: Select a Category Tab

Click one of the six category tabs to filter the Property Library. The active tab turns blue, and the library below updates to show only that category’s properties.

Example: Click 🎨 Colors → See Background Color, Gradient, Text Color, etc.

Step 2: Grab a Property Card

Click and hold on any property card. Your cursor changes to a grabbing hand, and the card becomes slightly transparent—visual feedback that you’ve picked it up.

Step 3: Drag to the Drop Zone

While holding the mouse button, drag the card up to the CSS Builder drop zone on the left. As you hover over the zone, it changes to a blue background—confirming it’s ready to receive the property.

Step 4: Release to Add Property

Release the mouse button. The property instantly transforms into an interactive control based on its type:

Property TypeControl You SeeHow to Use
Color Properties🎨 Color pickerClick to open color wheel, select visually
Dropdown Properties📝 Select menuClick dropdown, choose from predefined options
Text Properties✍️ Text inputClick to type value (e.g., “20px”, “2s ease”)

Each control is pre-filled with smart defaults—the most commonly used values for that property—so you can click “Generate CSS” immediately without changing anything.

Step 5: Adjust Values & Watch Live Preview

Modify the control’s value. The Live Preview in the top-right updates instantly showing exactly how your counter will look. No save button, no page refresh—pure real-time feedback.

⚡ Instant Visual Feedback

Change “Background Color” from blue to red? The preview counter turns red immediately. Adjust “Padding” from 14px to 30px? The counter expands instantly. This real-time feedback loop makes CSS experimentation intuitive and fun rather than intimidating.

🎬 Complete Example: Building a Golden Premium Counter

Let’s walk through creating a luxurious gold counter from scratch using only drag-and-drop:

Goal Design
  • ✨ Golden gradient background
  • ✨ Rounded corners (16px radius)
  • ✨ White text
  • ✨ Soft shadow for depth
  • ✨ Generous padding (16px vertical, 32px horizontal)
The Building Process
Action 1: Add Background Gradient
  1. Click the 🎨 Colors tab
  2. Find and drag “Gradient Background” to the drop zone
  3. A text field appears with default: linear-gradient(135deg, #667eea 0%, #764ba2 100%)
  4. Replace with: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%)
  5. Preview instantly shows a golden gradient counter
Action 2: Round the Corners
  1. Click the 📐 Layout tab
  2. Drag “Border Radius” to the drop zone
  3. Text field shows default: 12px
  4. Change to: 16px
  5. Preview corners become more rounded
Action 3: Set Text Color to White
  1. Stay in 🎨 Colors tab (or navigate back)
  2. Drag “Text Color” to the drop zone
  3. Color picker appears with default blue
  4. Click picker, select white (#ffffff)
  5. Preview text and icon turn white
Action 4: Add Shadow for Depth
  1. Click the ✨ Effects tab
  2. Drag “Box Shadow” to the drop zone
  3. Text field shows: 0 4px 6px rgba(0, 0, 0, 0.1)
  4. Change to: 0 8px 24px rgba(251, 191, 36, 0.4) (golden glow)
  5. Preview gains a subtle golden shadow
Action 5: Adjust Padding
  1. Back to 📐 Layout tab
  2. Drag “Padding” to the drop zone
  3. Text field shows: 14px 28px
  4. Change to: 16px 32px (more breathing room)
  5. Preview counter becomes more spacious

Total time: Less than 2 minutes. Code typed: Zero lines. Result: Professional golden counter ready for deployment.

✨ Generating Your CSS Code

Once you’re happy with your design, it’s time to extract the code:

The Generate Button

At the bottom of the CSS Builder sidebar, you’ll see:

✨ Generate CSS

Click this button. Instantly, a collapsible code block appears below showing your production-ready CSS:

body .product-views-counter .view-counter-wrapper {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%) !important;
  border-radius: 16px !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4) !important;
  padding: 16px 32px !important;
}

Notice the Encyclopedia automatically adds:

  • ✅ The correct selector (body .product-views-counter .view-counter-wrapper)
  • ✅ The !important flag on every property (ensures your styles override defaults)
  • ✅ Proper CSS formatting with indentation and semicolons
  • ✅ Opening and closing braces

You don’t need to know CSS syntax—the Encyclopedia handles all technical details.

Copy to Clipboard

Below the generated code, click the green button:

📋 Copy to Clipboard

The entire CSS block is copied. A success toast notification appears in the bottom-right: “✅ CSS copied to clipboard!”

Applying the Code to Your Site

  1. Return to the WhoKnew → WhoKnew Views → Styling tab
  2. Scroll to the “Custom CSS” section
  3. Click inside the large textarea
  4. Press Ctrl+V (or Cmd+V on Mac) to paste
  5. Click “Save Changes” at the bottom of the page
  6. View your product pages—your golden counter is live!

🗑️ Managing Properties in the Builder

Removing Properties

Each active property in the drop zone has a red 🗑️ Remove button on its right side. Click to instantly delete that property from your build.

Clearing Everything

To start fresh, click the red 🗑️ Clear button at the top of the builder. All properties are removed, and the drop zone returns to its empty placeholder state.

Reordering Properties

CSS property order usually doesn’t matter, but if you want to reorganize:

  1. Click Clear to empty the builder
  2. Drag properties back in your preferred order
  3. Values are remembered—just re-adjust if needed

💡 Pro Tip: Experiment Fearlessly

The Encyclopedia is a sandbox—nothing you do here affects your live site until you copy the code and paste it into the Custom CSS field. Drag 50 properties, make wild color choices, break things—it’s all safe experimentation. When you find something you like, then generate and apply it.

🎓 Built-In CSS Crash Course

Below the builder and library, the Encyclopedia includes a 5-step tutorial designed specifically for shop owners with zero coding experience.

The Five Educational Steps

StepTopicWhat You Learn
1Understanding SelectorsWhat .product-views-counter means and why it’s needed
2Adding PropertiesHow property-value pairs work (e.g., color: red)
3The Magic of !importantWhy !important ensures your styles always apply
4Copy from the GalleryHow to browse pre-made examples and adapt them
5Experiment & Have Fun!Tips for safe experimentation and iteration

Each step uses color-coded sections, real code examples, and plain-English explanations like “Think of it like: ‘Hey browser, make the text red!'”

⚠️ Critical Warnings & Limitations

The Encyclopedia includes three essential warning boxes—read these carefully before deploying your CSS:

Warning 1: !important Blocks UI Changes

⚠️ Trade-Off Alert

Once you use color: #ff0000 !important; in Custom CSS, the Text Color picker in the Styling tab will no longer work for that property. The !important flag forces your CSS to override everything—including UI changes.

Solution: If you later want to change a property using the UI pickers, you must remove that CSS line or delete the !important flag from it.

Warning 2: CSS Does NOT Create Icons

👁️ Icons Must Exist First

Many example codes in galleries show icon styling (e.g., color: #fbbf24 !important; for yellow icons). CSS can only STYLE icons that already exist—it cannot CREATE them!

What This Means:

  • ❌ Wrong workflow: Copy CSS with icon styling → Expect icon to appear
  • ✅ Correct workflow: Go to Styling tab → Select Icon Library → Choose an icon → Then use CSS to style it

Example: If you see CSS referencing “Ion Leaf” in a gallery preset, that’s just telling you which icon was used in the example. You must manually select “Ionicons” library and search for “leaf” in the Icon Picker first. Then the CSS will style that leaf icon.

Warning 3: Animation Control Cheat Sheet

The Encyclopedia includes an expandable Animation Control Cheat Sheet (click to open) that teaches:

  • ⏱️ Animation Delay: How to pause before starting (animation-delay: 1s)
  • 🔁 Loop Count: Play once, 3 times, or infinite (animation-iteration-count)
  • 🖱️ Hover vs Page Load: When to use :hover selectors vs base styles
  • ⏲️ Duration/Speed: Making animations faster or slower (animation-duration: 3s)
  • 🎯 Real-World Example: Complete code for “pulse on hover, 3 times, slowly, with 0.5s delay”

This cheat sheet is invaluable if you’re dragging animation-related properties from the 🎬 Animations tab.

🚀 Advanced Techniques

Combining Multiple Properties for Complex Effects

The real power emerges when you layer properties together. For example:

Frosted Glass Counter
  1. Drag “Background Color” → Set to rgba(255, 255, 255, 0.15) (semi-transparent white)
  2. Drag “Backdrop Filter” → Set to blur(10px)
  3. Drag “Border” → Set to 1px solid rgba(255, 255, 255, 0.3)
  4. Drag “Border Radius” → Set to 12px
  5. Drag “Box Shadow” → Set to 0 8px 32px rgba(0, 0, 0, 0.1)

Result: A modern glassmorphism effect where the background blurs through a translucent counter—perfect for overlaying on product images.

Using Text Properties for Icon Styling

Remember: icons in WhoKnew Views™ are icon fonts (not images). This means text properties work on them:

  • Drag “Text Color” → Changes icon color
  • Drag “Font Size” → Changes icon size
  • Drag “Text Shadow” → Adds shadow to icon

The generated CSS targets both .view-counter-text and .view-counter-icon automatically when you use these properties.

Experimenting with Transform Properties

From the 🎬 Animations tab, drag “Transform”. This single property accepts multiple transform functions:

  • scale(1.1) — Makes counter 10% larger
  • rotate(5deg) — Tilts counter 5 degrees
  • translateY(-10px) — Shifts counter up 10 pixels
  • skew(2deg, 0deg) — Creates italic/slanted effect

You can combine them in the text field:

transform: scale(1.05) rotate(-2deg) translateY(-5px) !important;

Result: Counter is slightly larger, tilted left, and shifted up—creates a playful, dynamic appearance.

💡 Real-World Building Examples

Example 1: Minimalist Scandinavian Counter

Goal: Clean, white, thin border, subtle shadow, no frills.

Properties to Drag:

  1. Background Color → #ffffff
  2. Border → 1px solid #e5e7eb
  3. Border Radius → 4px (minimal rounding)
  4. Box Shadow → 0 1px 3px rgba(0, 0, 0, 0.1) (very subtle)
  5. Text Color → #1f2937 (dark gray)
  6. Padding → 8px 16px (compact)

Time to build: ~90 seconds

Example 2: Neon Cyberpunk Counter

Goal: Dark background, cyan neon glow, futuristic vibe.

Properties to Drag:

  1. Gradient Background → linear-gradient(135deg, #0f172a 0%, #1e293b 100%)
  2. Border → 2px solid #06b6d4 (cyan)
  3. Border Radius → 8px
  4. Box Shadow → 0 0 20px rgba(6, 182, 212, 0.6), inset 0 0 20px rgba(6, 182, 212, 0.1) (outer + inner glow)
  5. Text Color → #06b6d4 (cyan)
  6. Text Shadow → 0 0 10px rgba(6, 182, 212, 0.8) (neon text glow)

Time to build: ~2 minutes

Example 3: Elegant Serif Counter for Luxury Brands

Goal: Sophisticated, serif font, cream background, gold accents.

Properties to Drag:

  1. Background Color → #f5f5dc (cream/beige)
  2. Border → 2px double #c5a028 (gold double border)
  3. Border Radius → 0px (sharp corners)
  4. Text Color → #3d3d3d (charcoal)
  5. Font Family → Georgia, serif
  6. Font Weight → 400 (normal, elegant)
  7. Letter Spacing → 1px (refined spacing)
  8. Box Shadow → inset 0 0 10px rgba(0, 0, 0, 0.05) (subtle inner shadow)

Time to build: ~2.5 minutes

📚 Property Quick Reference

Here are the most commonly dragged properties and their typical use cases:

PropertyWhat It ControlsSmart DefaultPopular Values
Background ColorSolid background#3b82f6#ffffff, rgba(0,0,0,0.8)
Gradient BackgroundGradient filllinear-gradient(...)See “Background Gradients” article
PaddingInternal spacing14px 28px10px 20px, 16px 32px
Border RadiusCorner rounding12px8px, 50px (pill), 0px (sharp)
Box ShadowDrop shadow0 4px 6px rgba(...)0 8px 24px rgba(0,0,0,0.2)
Text ColorText & icon color#ffffff#000000, #1f2937
Font SizeText size16px14px, 18px, 20px
Font WeightText boldness600300 (light), 700 (bold)
TransformScale/rotate/movenonescale(1.1), rotate(5deg)
TransitionSmooth changesall 0.3s easetransform 0.5s ease

⚠️ Troubleshooting

IssueSolution
Property won’t dragEnsure you’re clicking and holding the property card, not just clicking. Try refreshing the page if the drag handler isn’t working.
Drop zone not accepting propertyDrag directly over the drop zone until it turns blue, then release. If it still doesn’t work, click “Clear” and try again.
Preview doesn’t updateChanges should be instant. If not, check that you’ve changed the value in the control. Some browsers cache—try hard refresh (Ctrl+Shift+R).
Generated CSS doesn’t work on siteEnsure you pasted into the Custom CSS textarea in Styling tab, not the regular CSS editor. Click “Save Changes” after pasting. Clear site cache.
Icon styling CSS has no effectYou must select an icon first via Styling tab → Icon Library → Icon Name. CSS cannot create icons, only style them.
UI picker stops working after Custom CSSThis is expected—!important flags override UI changes. Remove the specific CSS line to restore UI control, or manually edit the CSS value instead.
Share