# styled-system/styled-system

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/styled-system-styled-system).**

7,870 stars · 495 forks · JavaScript · MIT

## Links

- GitHub: https://github.com/styled-system/styled-system
- Homepage: https://styled-system.com
- awesome-repositories: https://awesome-repositories.com/repository/styled-system-styled-system.md

## Topics

`colors` `css` `css-in-js` `design-systems` `emotion` `layout` `react` `responsive` `style-props` `styled-components` `styling` `theming` `tokens` `typography`

## Description

Styled System is a JavaScript library that provides a style props approach for building UI components, enabling developers to map CSS properties directly to component props for rapid, declarative development. At its core, it resolves design tokens from a centralized theme object into CSS values, ensuring consistent styling across components without writing custom stylesheets. The library supports theme-aware styling that connects component styles to a theme object for scalable, maintainable design systems with dynamic value resolution.

The library differentiates itself through several capabilities that streamline responsive and interactive styling. It offers responsive style props that apply breakpoint-aware styles using an array syntax, generating responsive CSS without media query boilerplate. Developers can use functional prop values to compute styles dynamically based on the current theme or component state, and map CSS pseudo-classes like hover and focus directly to component props for interactive styling. Shorthand CSS properties like margin and padding are automatically expanded into their longhand equivalents, while variant composition allows combining multiple style objects from the theme into a single prop.

The broader capability surface includes building responsive layouts by defining spacing, sizing, and typography across breakpoints using style props that map to design tokens. The library also provides design token decoding functionality, converting token strings into their resolved values through a centralized lookup system. Style prop development enables rapid, inline control over visual properties without writing custom CSS, supporting the creation of consistent, theme-driven user interfaces.

## Tags

### User Interface & Experience

- [Style Props Frameworks](https://awesome-repositories.com/f/user-interface-experience/style-props-frameworks.md) — Provides a style props library for inline control over visual properties without custom CSS.
- [Prop-Based Utility Styling](https://awesome-repositories.com/f/user-interface-experience/styling-theming-systems/content-styling/styling-architectures/styling-systems/class-based-styling/utility-first-styling/prop-based-utility-styling.md) — Maps CSS properties directly to component props for rapid, declarative UI development without custom stylesheets.
- [Functional Prop Values](https://awesome-repositories.com/f/user-interface-experience/component-props-management/prop-transformations/functional-prop-values.md) — Provides functional prop values that compute styles dynamically based on theme or component state.
- [Pseudo-Class Interactions](https://awesome-repositories.com/f/user-interface-experience/css-selectors/pseudo-class-interactions.md) — Maps CSS pseudo-classes like hover and focus directly to component props for interactive styling.
- [Shorthand Prop Expansion](https://awesome-repositories.com/f/user-interface-experience/css-shorthand-definitions/shorthand-prop-expansion.md) — Automatically expands shorthand CSS properties like margin and padding into their longhand equivalents.
- [Design Tokens](https://awesome-repositories.com/f/user-interface-experience/design-token-management/design-tokens.md) — Resolves design token strings into CSS values using a centralized theme object lookup.
- [Design Token Decoders](https://awesome-repositories.com/f/user-interface-experience/design-token-management/design-tokens/design-token-decoders.md) — Converts design token strings into resolved values through a centralized token lookup system. ([source](https://styled-system.com/visit/decode/))
- [Design Token Theming](https://awesome-repositories.com/f/user-interface-experience/design-token-theming.md) — Resolves design tokens from a centralized theme object at runtime for consistent styling.
- [Responsive Array Syntax](https://awesome-repositories.com/f/user-interface-experience/responsive-breakpoints/responsive-array-syntax.md) — Ships a responsive array syntax that defines styles across breakpoints without media query boilerplate.
- [Responsive Style Mappings](https://awesome-repositories.com/f/user-interface-experience/style-props-frameworks/property-based-style-mappings/responsive-style-mappings.md) — Provides responsive style props that map spacing, sizing, and typography to design tokens across breakpoints. ([source](https://styled-system.com/author/Tyrone%20Burke))
- [Responsive Breakpoint Mapping](https://awesome-repositories.com/f/user-interface-experience/styling-theming-systems/css-layout-systems/constraint-based-layouts/responsive-breakpoint-mapping.md) — Builds responsive layouts by applying spacing, sizing, and typography style props across breakpoints.
- [Theme-Aware Components](https://awesome-repositories.com/f/user-interface-experience/theme-aware-components.md) — Connects component styles to a theme object for scalable, maintainable design systems.
- [Variant Composition](https://awesome-repositories.com/f/user-interface-experience/styling-theming-systems/content-styling/component-styling-tools/styling-variants/style-variant-mapping/variant-composition.md) — Combines multiple style variants into a single prop by merging predefined style objects from the theme.
