4.6.2 • Published 1 year ago

pollen-css v4.6.2

Weekly downloads
95
License
MIT
Repository
github
Last release
1 year ago

Pollen is a highly configurable library of CSS variables for your next design system. It lets you write faster, more consistent, and more maintainable styles.

Made and maintained with ❤️ by the fine people at Bokeh.

Features

  • Robust library of well-considered, style-agnostic CSS variables
  • Fully configurable and extensible with CLI build tool
  • Zero setup required to get started
  • Responsive with configurable @media and @supports queries
  • Lightweight, human-readable output if you ever want to move away from Pollen

What it looks like

Pollen's design tokens can be used to build any project. They're easy to customise and extend and they don't require preprocessors, class naming conventions, or non-standard syntax. Generate an entirely custom design system with a simple config file.

How it works

1. Configure your design system

pollen.config.js

module.exports = (pollen) => ({
  output: './pollen.css',
  modules: {
    ...pollen,
    color: {
      ...pollen.colors,
      bg: 'white',
      text: 'var(--color-black)'
    }
  },
  media: {
    '(prefers-color-scheme: dark)': {
      color: {
        bg: 'var(--color-black)',
        text: 'white'
      }
    }
  }
});

2. Build your CSS

$ pollen

3. Use the CSS

index.html

<link href="/pollen.css" rel="stylehseet" />

What it includes

Pollen's default variables include expertly crafted modules for:

  • Font sizes
  • Fluid font sizes
  • Font sets
  • Font weights
  • Line heights
  • Letter spacings
  • Prose widths
  • Size scale
  • Container widths
  • Aspect ratios
  • Color pallete
  • Border radiuses
  • Blurs
  • Z-index layers
  • Box shadows
  • Easing functions
  • Page grid
  • Content grids

Documentation

Read the full documentation at pollen.style

4.6.2

1 year ago

4.5.0

2 years ago

4.4.0

2 years ago

4.6.1

2 years ago

4.6.0

2 years ago

4.3.1

2 years ago

4.3.0

2 years ago

4.0.0-rc.2

2 years ago

4.1.0

2 years ago

4.0.0

2 years ago

4.2.0

2 years ago

4.1.1

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.2.0-beta.2

2 years ago

3.2.0-beta.3

2 years ago

3.2.0-beta.1

2 years ago

4.0.0-rc.1

2 years ago

3.0.1

3 years ago

3.0.0

3 years ago

3.0.0-rc.2

3 years ago

3.0.0-rc.1

3 years ago

2.2.0

3 years ago

3.0.0-rc.0

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.1.0

3 years ago

1.0.0

4 years ago

0.5.2

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago