Skip to content

Commit

Permalink
chore: update example
Browse files Browse the repository at this point in the history
  • Loading branch information
nado1001 committed May 27, 2023
1 parent a6812be commit eddb55e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
1 change: 1 addition & 0 deletions example/with-css-variables/sd.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const StyleDictionaryModule = require('style-dictionary')
const { makeSdTailwindConfig } = require('sd-tailwindcss-transformer')
// const { makeSdTailwindConfig } = require('../../dist')

const sdConfig = makeSdTailwindConfig({
type: 'all',
Expand Down
2 changes: 1 addition & 1 deletion example/with-css-variables/styles/tailwind.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Sat, 20 May 2023 09:14:22 GMT
* Generated on Sat, 27 May 2023 05:45:04 GMT
*/

:root {
Expand Down
26 changes: 10 additions & 16 deletions example/with-css-variables/tailwind.config.cjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
module.exports = {
mode: "jit",
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
content: ["./pages/**/*.{js,ts,jsx,tsx}","./components/**/*.{js,ts,jsx,tsx}"],
darkMode: "class",
theme: {
extend: {
Expand All @@ -13,27 +10,24 @@ module.exports = {
gray: {
light: "var(--colors-base-gray-light)",
medium: "var(--colors-base-gray-medium)",
dark: "var(--colors-base-gray-dark)",
dark: "var(--colors-base-gray-dark)"
},
red: "var(--colors-base-red)",
green: "var(--colors-base-green)",
green: "var(--colors-base-green)"
},
font: {
base: "var(--colors-font-base)",
secondary: "var(--colors-font-secondary)",
tertiary: "var(--colors-font-tertiary)",
},
tertiary: "var(--colors-font-tertiary)"
}
},
fontSize: {
small: "var(--font-size-small)",
medium: "var(--font-size-medium)",
large: "var(--font-size-large)",
base: "var(--font-size-base)",
},
base: "var(--font-size-base)"
}
},
},
plugins: [
require("@tailwindcss/typography"),
require("@tailwindcss/container-queries"),
],
}
plugins: [require("@tailwindcss/typography"),require("@tailwindcss/container-queries")]
}

0 comments on commit eddb55e

Please sign in to comment.