Skip to content

Commit

Permalink
docs(readme): updates example to show new options
Browse files Browse the repository at this point in the history
  • Loading branch information
saneef committed Apr 24, 2024
1 parent 0ae1cef commit 6a87fc7
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,10 @@ const tokens = {
const config = {
plugins: [
/* ...other plugins... */
postcssDesignTokenUtils(
postcssDesignTokenUtils({
tokens, // Tokens
{
/* pluginOptions */
},
),
/* pluginOptions */
}),
],
};
```
Expand Down Expand Up @@ -116,7 +114,8 @@ const tokens = {

const config = {
plugins: [
postcssDesignTokenUtils(tokens, {
postcssDesignTokenUtils({
tokens,
customProperties: [
{ id: "darkThemeColor", prefix: "color", group: "dark" },
],
Expand Down Expand Up @@ -189,7 +188,8 @@ const tokens = {

const config = {
plugins: [
postcssDesignTokenUtils(tokens, {
postcssDesignTokenUtils({
tokens,
utilityClasses: [
{
id: "color",
Expand Down Expand Up @@ -251,7 +251,8 @@ We need to provide breakpoints and specify which classes need responsive variant

const config = {
plugins: [
postcssDesignTokenUtils(tokens, {
postcssDesignTokenUtils({
tokens,
breakpoints: {
sm: "320px", // 👈 Added break points
md: "640px",
Expand Down Expand Up @@ -335,7 +336,8 @@ const token = {

const config = {
plugins: [
postcssDesignTokenUtils(tokens, {
postcssDesignTokenUtils({
tokens,
utilityClasses: [
{
id: "color.gray",
Expand Down

0 comments on commit 6a87fc7

Please sign in to comment.