S2 Framework
Clone S2 in Webflow
English
English
  • Welcome
    • S2 is flow simple!
    • Getting Started
  • How to use the Cloneable?
  • Guide & Documentation
    • Basic Concepts
      • Styling in Webflow
      • Utility Classes
      • Units
      • Fluid Typography
    • Variables
      • Colors vs Palettes
      • Colors in S2
      • Text
      • Variable Groups
    • Naming Strategies
      • Class Naming
      • Other Naming Strategies
      • Naming Custom Attributes
    • Structure
      • HTML Structure
      • Global Code
    • S2 Attributes
    • S2 Components
  • Editions
    • Build your own S2
      • One-page Style Guide
      • Lite Edition
  • More
    • FAQs
    • Ready to switch to S2?
      • Frameworks Comparison Overview
      • From Client-First
      • From MAST or The Saddle
      • From Lumos
    • Tools and Resources
    • Read More
      • Foundations of S2
      • Our Approaches
  • Links
    • 🤘Clone in Webflow
    • 🪵Changelog & Roadmap
  • Copyright & Terms
Powered by GitBook
On this page
  1. Guide & Documentation
  2. Variables

Variable Groups

PreviousTextNextNaming Strategies

Last updated 2 months ago

Variable Collections and Groups out-of-the-box in S2 Framework:

Theme

Variable Groups
Description

Colors *

Contains essential colors for selection throughout the project. If you have more colors, you are recommanded to add them here.

Colors - Special

Contains colors for specific purposes, particularly those that maintain a consistent appearance in both light and dark modes.

S2

Colors for the style guide only.

Palettes

Variable Groups
Description

Primary

The palette of Primary colors ranges from shades 50 to 950, complemented by three foreground colors (on300, on500, on700) and a subtle color.

Secondary

The palette of Secondary colors.

Accent

The palette of Accent colors.

Neutral *

The palette of Neutral (grayscale) colors.

Sizes

Variable Groups
Description

Container

Width and padding values for containers.

Spacing

Values for layout spacing.

Radius

Radius values.

Icon

For icon sizes.

Button

For sizes (heights) of buttons.

Line

For lines or borders.

Gap

For gap heights and widths.

Main Nav

Grouping variables specifically for the main navigation.

Outline

For outline and offset values of outline.

Grid

Grid system's gutter value and number of columns.

Variable Groups
Description

Font Family

For global font selection.

Font Size

For key font size variations.

List Spacing

Spacing of lists.

Richtext Spacing

Spacing for Rich Text elements.

Other

Other typography related values.

While you can add more variables and edit the colors freely, it is not recommended that you remove or rename the existing "Colors" and "Neutral" variables.

Text

📂
📂
📂
📂