description | cover | coverY |
---|---|---|
The foundation of your next design system |
.gitbook/assets/cover wide.jpg |
19.899888765294783 |
Pollen is a configurable library of CSS variables. It lets you write faster, more consistent, and more maintainable styles. Use it in any stack and easily extend it as a build tool for your own custom design systems.
Made and maintained with ❤️ by the fine people at Bokeh.
Pollen's low-level design tokens can be used to build any project. They're easy to customise and extend, and they're globally responsive. They don't require preprocessors, class naming conventions, or any new non-standard syntax
{% tabs %} {% tab title="CSS" %}
.button {
font-family: var(--font-sans);
font-size: var(--scale-00);
font-weight: var(--weight-medium);
line-height: var(--line-none);
padding: var(--size-3) var(--size-5);
background: var(--color-blue);
border-radius: var(--radius-xs);
color: white;
}
{% endtab %}
{% tab title="CSS-in-JS" %}
const Button = styled.button`
font-family: var(--font-sans);
font-size: var(--scale-00);
font-weight: var(--weight-medium);
line-height: var(--line-none);
padding: var(--size-3) var(--size-5);
background: var(--color-blue);
border-radius: var(--radius-xs);
color: white;
`
{% endtab %}
{% tab title="Object styles" %}
<button styles={{
fontFamily: 'var(--font-sans)',
fontSize: 'var(--scale-00)',
fontWeight: 'var(--weight-medium)',
lineHeight: 'var(--line-none)',
padding: 'var(--size-3) var(--size-5)',
background: 'var(--color-blue)',
borderRadius: 'var(--radius-xs)'
color: 'white'
}}>
Button
</button>
{% endtab %}
{% tab title="Inline Styles" %}
<button style="font-family: var(--font-sans); font-size: var(--scale-00); font-weight: var(--weight-medium); line-height: var(--line-none); padding: var(--size-3) var(--size-5); background: var(--color-blue); border-radius: var(--radius-xs); color: white;">
Button
</button>
{% endtab %}
{% tab title="Live example" %} {% embed url="https://codepen.io/madeleineostoja/pen/LYjGjGa" %}
{% endtab %} {% endtabs %}
Pollen is used extensively in production and actively maintained by the photo nerds Bokeh. It's also used by many other awesome teams in projects from small to large-scale. Are you using Pollen? Open an issue on Github to add your site to the list.