githubEdit

cssnext

Variables

:root {
  --text-color: #30333a;
}
body {
  background: var(--text-color);
  background: color(var(--text-color) shade(30%));
}

Colors

a {
  /* Adjustments */
  color: color(red alpha(-10%));
  color: color(red tint(-10%));    /* lighten */
  color: color(red shade(-10%));   /* darken */

  /* Absolute */
  color: color(red alpha(50%));
  color: color(red hue(225));
  color: color(red saturation(100%));
  color: color(red lightness(50%));

  color: gray(33);       /* rgb(33, 33, 33) */
  color: gray(33%);      /* rgb(84, 84, 84) */
  color: gray(33%, 50%); /* rgba(84, 84, 84, 0.5) */
  color: #0000ff80;      /* rgba(0, 0, 255, 0.5) */

  color: hwb(90, 0%, 0%, 0.5);     /* like hsl() but easier for humans */
  color: hsl(90deg 90% 70%);       /* hsl(180, 90%, 70%) -- supports deg */
  color: hsl(90deg 90% 70% / 30%); /* hsla(180, 90%, 70%, 0.3) */
  color: rgb(30 60 90 / 30%);      /* rgba(30, 60, 90, 0.3) */
}

Also see colorme.ioarrow-up-right.

Mixins

Selectors

Nesting

Custom selectors

{: .-setup}

Future selectors

Media queries

Custom media queries

Media query ranges

Properties

Property fallbacks

Autoprefixing

Reset

Sets animation, background, margin, padding, and so on.

References

{: .-one-column}

Last updated