Code Monkey home page Code Monkey logo

pollen's Introduction

Pollen


Pollen

The CSS variables build system


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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.