...

/

Obtaining CSS Design Values

Obtaining CSS Design Values

This lesson shows how to programmatically access design values.

We'll cover the following...

The design-values module in css-theming gives you programmatic access to some of the CSS defined variables. You can, for example, obtain and display all the semantic colors in your app:

import {
  getSemanticColorNames,
} from 'css-theming';

const semanticColorNames = getSemanticColorNames();
// Do whatever you want with `semanticColorNames`, it's
...