Skip to content

Commit b16e98f

Browse files
author
Alex Page
committed
Replace css variables with css custom props
1 parent 73c27fa commit b16e98f

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

packages/custom-properties/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# @theme-ui/custom-properties
22

3-
Generate CSS variables for use with Theme UI.
3+
Generate CSS custom properties for use with Theme UI.
44

55

66
## Installation
@@ -35,5 +35,5 @@ toCustomProperties( $theme, $prefix );
3535
```
3636

3737
1. theme - The theme ui specification object
38-
1. prefix - An optional prefix for the css variables _optional_
38+
1. prefix - An optional prefix for the css custom property _optional_
3939

packages/custom-properties/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@theme-ui/custom-properties",
3-
"description": "Generate CSS variables for use with Theme UI",
3+
"description": "Generate CSS custom properties for use with Theme UI",
44
"version": "0.0.0",
55
"main": "dist/index.js",
66
"module": "dist/index.esm.js",

packages/custom-properties/test/__snapshots__/test.js.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`transforms a theme config to css variables 1`] = `
3+
exports[`transforms a theme config to CSS custom properties 1`] = `
44
Object {
55
"--color-accent": "#609",
66
"--color-background": "#fff",
@@ -31,7 +31,7 @@ Object {
3131
}
3232
`;
3333

34-
exports[`transforms a theme config to css variables with prefix 1`] = `
34+
exports[`transforms a theme config to CSS custom properties with prefix 1`] = `
3535
Object {
3636
"--🍭-color-accent": "#609",
3737
"--🍭-color-background": "#fff",

packages/custom-properties/test/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ const theme = {
3232
size: ['10em', '20em', '30em', '40em'],
3333
}
3434

35-
it('transforms a theme config to css variables', () => {
35+
it('transforms a theme config to CSS custom properties', () => {
3636
const result = toCustomProperties(theme)
3737

3838
expect(result).toMatchSnapshot()
3939
})
4040

41-
it('transforms a theme config to css variables with prefix', () => {
41+
it('transforms a theme config to CSS custom properties with prefix', () => {
4242
const result = toCustomProperties(theme, '🍭')
4343

4444
expect(result).toMatchSnapshot()

0 commit comments

Comments
 (0)