From 7e50a4985cb74aa24068d66e339066f3cab30d05 Mon Sep 17 00:00:00 2001 From: "keisuke.okafuji" Date: Wed, 16 Oct 2024 10:11:40 +0900 Subject: [PATCH 1/3] chore: remove old tokens and add std-26B-150 --- src/index.ts | 451 +-------------------------------------------------- 1 file changed, 2 insertions(+), 449 deletions(-) diff --git a/src/index.ts b/src/index.ts index 3a637e5..df6ec87 100644 --- a/src/index.ts +++ b/src/index.ts @@ -232,20 +232,6 @@ const daPlugin = plugin(() => {}, { 1100: tokens.Color.Primitive.Purple[1100].value, 1200: tokens.Color.Primitive.Purple[1200].value, }, - 'solid-grey': { - 50: tokens.Color.Neutral.SolidGrey[50].value, - 100: tokens.Color.Neutral.SolidGrey[100].value, - 200: tokens.Color.Neutral.SolidGrey[200].value, - 300: tokens.Color.Neutral.SolidGrey[300].value, - 400: tokens.Color.Neutral.SolidGrey[400].value, - 420: tokens.Color.Neutral.SolidGrey[420].value, - 500: tokens.Color.Neutral.SolidGrey[500].value, - 536: tokens.Color.Neutral.SolidGrey[536].value, - 600: tokens.Color.Neutral.SolidGrey[600].value, - 700: tokens.Color.Neutral.SolidGrey[700].value, - 800: tokens.Color.Neutral.SolidGrey[800].value, - 900: tokens.Color.Neutral.SolidGrey[900].value, - }, 'solid-gray': { 50: tokens.Color.Neutral.SolidGray[50].value, 100: tokens.Color.Neutral.SolidGray[100].value, @@ -272,13 +258,6 @@ const daPlugin = plugin(() => {}, { 'focus-blue': tokens.Color.Primitive.LightBlue[700].value, }, fontSize: { - 'dsp-64N-4': [ - tokens.FontSize[64].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_4'].value, - }, - ], 'dsp-64N-140': [ tokens.FontSize[64].value, { @@ -286,13 +265,6 @@ const daPlugin = plugin(() => {}, { lineHeight: tokens.LineHeight['1_4'].value, }, ], - 'dsp-57N-4': [ - tokens.FontSize[57].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_4'].value, - }, - ], 'dsp-57N-140': [ tokens.FontSize[57].value, { @@ -300,13 +272,6 @@ const daPlugin = plugin(() => {}, { lineHeight: tokens.LineHeight['1_4'].value, }, ], - 'dsp-48N-4': [ - tokens.FontSize[48].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_4'].value, - }, - ], 'dsp-48N-140': [ tokens.FontSize[48].value, { @@ -314,13 +279,6 @@ const daPlugin = plugin(() => {}, { lineHeight: tokens.LineHeight['1_4'].value, }, ], - 'std-45B-4': [ - tokens.FontSize[45].value, - { - fontWeight: tokens.FontWeight[700].value, - lineHeight: tokens.LineHeight['1_4'].value, - }, - ], 'std-45B-140': [ tokens.FontSize[45].value, { @@ -328,14 +286,6 @@ const daPlugin = plugin(() => {}, { lineHeight: tokens.LineHeight['1_4'].value, }, ], - 'std-36B-4': [ - tokens.FontSize[36].value, - { - fontWeight: tokens.FontWeight[700].value, - lineHeight: tokens.LineHeight['1_4'].value, - letterSpacing: '0.01em', - }, - ], 'std-36B-140': [ tokens.FontSize[36].value, { @@ -344,14 +294,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.01em', }, ], - 'std-32B-5': [ - tokens.FontSize[32].value, - { - fontWeight: tokens.FontWeight[700].value, - lineHeight: tokens.LineHeight['1_5'].value, - letterSpacing: '0.01em', - }, - ], 'std-32B-150': [ tokens.FontSize[32].value, { @@ -360,14 +302,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.01em', }, ], - 'std-28B-5': [ - tokens.FontSize[28].value, - { - fontWeight: tokens.FontWeight[700].value, - lineHeight: tokens.LineHeight['1_5'].value, - letterSpacing: '0.01em', - }, - ], 'std-28B-150': [ tokens.FontSize[28].value, { @@ -376,8 +310,8 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.01em', }, ], - 'std-24B-5': [ - tokens.FontSize[24].value, + 'std-26B-150': [ + tokens.FontSize[26].value, { fontWeight: tokens.FontWeight[700].value, lineHeight: tokens.LineHeight['1_5'].value, @@ -392,14 +326,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.02em', }, ], - 'std-22B-5': [ - tokens.FontSize[22].value, - { - fontWeight: tokens.FontWeight[700].value, - lineHeight: tokens.LineHeight['1_5'].value, - letterSpacing: '0.02em', - }, - ], 'std-22B-150': [ tokens.FontSize[22].value, { @@ -408,14 +334,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.02em', }, ], - 'std-20B-6': [ - tokens.FontSize[20].value, - { - fontWeight: tokens.FontWeight[700].value, - lineHeight: tokens.LineHeight['1_6'].value, - letterSpacing: '0.02em', - }, - ], 'std-20B-160': [ tokens.FontSize[20].value, { @@ -424,14 +342,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.02em', }, ], - 'std-20B-5': [ - tokens.FontSize[20].value, - { - fontWeight: tokens.FontWeight[700].value, - lineHeight: tokens.LineHeight['1_5'].value, - letterSpacing: '0.02em', - }, - ], 'std-20B-150': [ tokens.FontSize[20].value, { @@ -440,14 +350,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.02em', }, ], - 'std-18B-6': [ - tokens.FontSize[18].value, - { - fontWeight: tokens.FontWeight[700].value, - lineHeight: tokens.LineHeight['1_6'].value, - letterSpacing: '0.02em', - }, - ], 'std-18B-160': [ tokens.FontSize[18].value, { @@ -456,14 +358,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.02em', }, ], - 'std-17B-7': [ - tokens.FontSize[17].value, - { - fontWeight: tokens.FontWeight[700].value, - lineHeight: tokens.LineHeight['1_7'].value, - letterSpacing: '0.02em', - }, - ], 'std-17B-170': [ tokens.FontSize[17].value, { @@ -472,14 +366,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.02em', }, ], - 'std-16B-7': [ - tokens.FontSize[16].value, - { - fontWeight: tokens.FontWeight[700].value, - lineHeight: tokens.LineHeight['1_7'].value, - letterSpacing: '0.02em', - }, - ], 'std-16B-170': [ tokens.FontSize[16].value, { @@ -496,61 +382,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.02em', }, ], - 'std-32M-5': [ - tokens.FontSize[32].value, - { - fontWeight: tokens.FontWeight[500].value, - lineHeight: tokens.LineHeight['1_5'].value, - letterSpacing: '0.02em', - }, - ], - 'std-28M-5': [ - tokens.FontSize[28].value, - { - fontWeight: tokens.FontWeight[500].value, - lineHeight: tokens.LineHeight['1_5'].value, - letterSpacing: '0.02em', - }, - ], - 'std-24M-5': [ - tokens.FontSize[24].value, - { - fontWeight: tokens.FontWeight[500].value, - lineHeight: tokens.LineHeight['1_5'].value, - letterSpacing: '0.02em', - }, - ], - 'std-20M-5': [ - tokens.FontSize[20].value, - { - fontWeight: tokens.FontWeight[500].value, - lineHeight: tokens.LineHeight['1_5'].value, - letterSpacing: '0.02em', - }, - ], - 'std-17M-7': [ - tokens.FontSize[17].value, - { - fontWeight: tokens.FontWeight[500].value, - lineHeight: tokens.LineHeight['1_7'].value, - letterSpacing: '0.02em', - }, - ], - 'std-16M-7': [ - tokens.FontSize[16].value, - { - fontWeight: tokens.FontWeight[500].value, - lineHeight: tokens.LineHeight['1_7'].value, - letterSpacing: '0.02em', - }, - ], - 'std-45N-4': [ - tokens.FontSize[45].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_4'].value, - }, - ], 'std-45N-140': [ tokens.FontSize[45].value, { @@ -558,14 +389,6 @@ const daPlugin = plugin(() => {}, { lineHeight: tokens.LineHeight['1_4'].value, }, ], - 'std-36N-4': [ - tokens.FontSize[36].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_4'].value, - letterSpacing: '0.01em', - }, - ], 'std-36N-140': [ tokens.FontSize[36].value, { @@ -574,14 +397,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.01em', }, ], - 'std-32N-5': [ - tokens.FontSize[32].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_5'].value, - letterSpacing: '0.01em', - }, - ], 'std-32N-150': [ tokens.FontSize[32].value, { @@ -590,14 +405,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.01em', }, ], - 'std-28N-5': [ - tokens.FontSize[28].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_5'].value, - letterSpacing: '0.01em', - }, - ], 'std-28N-150': [ tokens.FontSize[28].value, { @@ -606,14 +413,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.01em', }, ], - 'std-26N-5': [ - tokens.FontSize[26].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_5'].value, - letterSpacing: '0.02em', - }, - ], 'std-26N-150': [ tokens.FontSize[26].value, { @@ -622,14 +421,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.02em', }, ], - 'std-24N-5': [ - tokens.FontSize[24].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_5'].value, - letterSpacing: '0.02em', - }, - ], 'std-24N-150': [ tokens.FontSize[24].value, { @@ -638,14 +429,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.02em', }, ], - 'std-22N-5': [ - tokens.FontSize[22].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_5'].value, - letterSpacing: '0.02em', - }, - ], 'std-22N-150': [ tokens.FontSize[22].value, { @@ -654,14 +437,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.02em', }, ], - 'std-20N-5': [ - tokens.FontSize[20].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_5'].value, - letterSpacing: '0.02em', - }, - ], 'std-20N-150': [ tokens.FontSize[20].value, { @@ -670,14 +445,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.02em', }, ], - 'std-18N-6': [ - tokens.FontSize[18].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_6'].value, - letterSpacing: '0.02em', - }, - ], 'std-18N-160': [ tokens.FontSize[18].value, { @@ -686,14 +453,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.02em', }, ], - 'std-17N-7': [ - tokens.FontSize[17].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_7'].value, - letterSpacing: '0.02em', - }, - ], 'std-17N-170': [ tokens.FontSize[17].value, { @@ -702,14 +461,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.02em', }, ], - 'std-16N-7': [ - tokens.FontSize[16].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_7'].value, - letterSpacing: '0.02em', - }, - ], 'std-16N-170': [ tokens.FontSize[16].value, { @@ -726,13 +477,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.02em', }, ], - 'dns-17B-3': [ - tokens.FontSize[17].value, - { - fontWeight: tokens.FontWeight[700].value, - lineHeight: tokens.LineHeight['1_3'].value, - }, - ], 'dns-17B-130': [ tokens.FontSize[17].value, { @@ -740,13 +484,6 @@ const daPlugin = plugin(() => {}, { lineHeight: tokens.LineHeight['1_3'].value, }, ], - 'dns-17B-2': [ - tokens.FontSize[17].value, - { - fontWeight: tokens.FontWeight[700].value, - lineHeight: tokens.LineHeight['1_2'].value, - }, - ], 'dns-17B-120': [ tokens.FontSize[17].value, { @@ -754,13 +491,6 @@ const daPlugin = plugin(() => {}, { lineHeight: tokens.LineHeight['1_2'].value, }, ], - 'dns-16B-3': [ - tokens.FontSize[16].value, - { - fontWeight: tokens.FontWeight[700].value, - lineHeight: tokens.LineHeight['1_3'].value, - }, - ], 'dns-16B-130': [ tokens.FontSize[16].value, { @@ -768,13 +498,6 @@ const daPlugin = plugin(() => {}, { lineHeight: tokens.LineHeight['1_3'].value, }, ], - 'dns-16B-2': [ - tokens.FontSize[16].value, - { - fontWeight: tokens.FontWeight[700].value, - lineHeight: tokens.LineHeight['1_2'].value, - }, - ], 'dns-16B-120': [ tokens.FontSize[16].value, { @@ -782,13 +505,6 @@ const daPlugin = plugin(() => {}, { lineHeight: tokens.LineHeight['1_2'].value, }, ], - 'dns-14B-3': [ - tokens.FontSize[14].value, - { - fontWeight: tokens.FontWeight[700].value, - lineHeight: tokens.LineHeight['1_3'].value, - }, - ], 'dns-14B-130': [ tokens.FontSize[14].value, { @@ -796,13 +512,6 @@ const daPlugin = plugin(() => {}, { lineHeight: tokens.LineHeight['1_3'].value, }, ], - 'dns-14B-2': [ - tokens.FontSize[14].value, - { - fontWeight: tokens.FontWeight[700].value, - lineHeight: tokens.LineHeight['1_2'].value, - }, - ], 'dns-14B-120': [ tokens.FontSize[14].value, { @@ -810,13 +519,6 @@ const daPlugin = plugin(() => {}, { lineHeight: tokens.LineHeight['1_2'].value, }, ], - 'dns-17N-3': [ - tokens.FontSize[17].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_3'].value, - }, - ], 'dns-17N-130': [ tokens.FontSize[17].value, { @@ -824,13 +526,6 @@ const daPlugin = plugin(() => {}, { lineHeight: tokens.LineHeight['1_3'].value, }, ], - 'dns-17N-2': [ - tokens.FontSize[17].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_2'].value, - }, - ], 'dns-17N-120': [ tokens.FontSize[17].value, { @@ -838,13 +533,6 @@ const daPlugin = plugin(() => {}, { lineHeight: tokens.LineHeight['1_2'].value, }, ], - 'dns-16N-3': [ - tokens.FontSize[16].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_3'].value, - }, - ], 'dns-16N-130': [ tokens.FontSize[16].value, { @@ -852,13 +540,6 @@ const daPlugin = plugin(() => {}, { lineHeight: tokens.LineHeight['1_3'].value, }, ], - 'dns-16N-2': [ - tokens.FontSize[16].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_2'].value, - }, - ], 'dns-16N-120': [ tokens.FontSize[16].value, { @@ -866,13 +547,6 @@ const daPlugin = plugin(() => {}, { lineHeight: tokens.LineHeight['1_2'].value, }, ], - 'dns-14N-3': [ - tokens.FontSize[14].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_3'].value, - }, - ], 'dns-14N-130': [ tokens.FontSize[14].value, { @@ -880,13 +554,6 @@ const daPlugin = plugin(() => {}, { lineHeight: tokens.LineHeight['1_3'].value, }, ], - 'dns-14N-2': [ - tokens.FontSize[14].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_2'].value, - }, - ], 'dns-14N-120': [ tokens.FontSize[14].value, { @@ -894,14 +561,6 @@ const daPlugin = plugin(() => {}, { lineHeight: tokens.LineHeight['1_2'].value, }, ], - 'oln-17B-1': [ - tokens.FontSize[17].value, - { - fontWeight: tokens.FontWeight[700].value, - lineHeight: tokens.LineHeight['1_0'].value, - letterSpacing: '0.02em', - }, - ], 'oln-17B-100': [ tokens.FontSize[17].value, { @@ -910,14 +569,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.02em', }, ], - 'oln-16B-1': [ - tokens.FontSize[16].value, - { - fontWeight: tokens.FontWeight[700].value, - lineHeight: tokens.LineHeight['1_0'].value, - letterSpacing: '0.02em', - }, - ], 'oln-16B-100': [ tokens.FontSize[16].value, { @@ -926,14 +577,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.02em', }, ], - 'oln-14B-1': [ - tokens.FontSize[14].value, - { - fontWeight: tokens.FontWeight[700].value, - lineHeight: tokens.LineHeight['1_0'].value, - letterSpacing: '0.02em', - }, - ], 'oln-14B-100': [ tokens.FontSize[14].value, { @@ -942,38 +585,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.02em', }, ], - 'oln-17M-1': [ - tokens.FontSize[17].value, - { - fontWeight: tokens.FontWeight[500].value, - lineHeight: tokens.LineHeight['1_0'].value, - letterSpacing: '0.02em', - }, - ], - 'oln-16M-1': [ - tokens.FontSize[16].value, - { - fontWeight: tokens.FontWeight[500].value, - lineHeight: tokens.LineHeight['1_0'].value, - letterSpacing: '0.02em', - }, - ], - 'oln-14M-1': [ - tokens.FontSize[14].value, - { - fontWeight: tokens.FontWeight[500].value, - lineHeight: tokens.LineHeight['1_0'].value, - letterSpacing: '0.02em', - }, - ], - 'oln-17N-1': [ - tokens.FontSize[17].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_0'].value, - letterSpacing: '0.02em', - }, - ], 'oln-17N-100': [ tokens.FontSize[17].value, { @@ -982,14 +593,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.02em', }, ], - 'oln-16N-1': [ - tokens.FontSize[16].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_0'].value, - letterSpacing: '0.02em', - }, - ], 'oln-16N-100': [ tokens.FontSize[16].value, { @@ -998,14 +601,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.02em', }, ], - 'oln-14N-1': [ - tokens.FontSize[14].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_0'].value, - letterSpacing: '0.02em', - }, - ], 'oln-14N-100': [ tokens.FontSize[14].value, { @@ -1014,13 +609,6 @@ const daPlugin = plugin(() => {}, { letterSpacing: '0.02em', }, ], - 'mono-17B-5': [ - tokens.FontSize[17].value, - { - fontWeight: tokens.FontWeight[700].value, - lineHeight: tokens.LineHeight['1_5'].value, - }, - ], 'mono-17B-150': [ tokens.FontSize[17].value, { @@ -1028,13 +616,6 @@ const daPlugin = plugin(() => {}, { lineHeight: tokens.LineHeight['1_5'].value, }, ], - 'mono-16B-5': [ - tokens.FontSize[16].value, - { - fontWeight: tokens.FontWeight[700].value, - lineHeight: tokens.LineHeight['1_5'].value, - }, - ], 'mono-16B-150': [ tokens.FontSize[16].value, { @@ -1042,13 +623,6 @@ const daPlugin = plugin(() => {}, { lineHeight: tokens.LineHeight['1_5'].value, }, ], - 'mono-14B-5': [ - tokens.FontSize[14].value, - { - fontWeight: tokens.FontWeight[700].value, - lineHeight: tokens.LineHeight['1_5'].value, - }, - ], 'mono-14B-150': [ tokens.FontSize[14].value, { @@ -1056,13 +630,6 @@ const daPlugin = plugin(() => {}, { lineHeight: tokens.LineHeight['1_5'].value, }, ], - 'mono-17N-5': [ - tokens.FontSize[17].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_5'].value, - }, - ], 'mono-17N-150': [ tokens.FontSize[17].value, { @@ -1070,13 +637,6 @@ const daPlugin = plugin(() => {}, { lineHeight: tokens.LineHeight['1_5'].value, }, ], - 'mono-16N-5': [ - tokens.FontSize[16].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_5'].value, - }, - ], 'mono-16N-150': [ tokens.FontSize[16].value, { @@ -1084,13 +644,6 @@ const daPlugin = plugin(() => {}, { lineHeight: tokens.LineHeight['1_5'].value, }, ], - 'mono-14N-5': [ - tokens.FontSize[14].value, - { - fontWeight: tokens.FontWeight[400].value, - lineHeight: tokens.LineHeight['1_5'].value, - }, - ], 'mono-14N-150': [ tokens.FontSize[14].value, { From b230ea82ad886d7cb7bd0cc1831bbc8f13494e38 Mon Sep 17 00:00:00 2001 From: "keisuke.okafuji" Date: Wed, 16 Oct 2024 10:12:29 +0900 Subject: [PATCH 2/3] chore: update examples --- examples/src/typography/TypographySection.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/src/typography/TypographySection.tsx b/examples/src/typography/TypographySection.tsx index 6784484..3073a9b 100644 --- a/examples/src/typography/TypographySection.tsx +++ b/examples/src/typography/TypographySection.tsx @@ -13,9 +13,10 @@ export const TypographySection = () => {

std-36B-140 デザインシステム

std-32B-150 デザインシステム

std-28B-150 デザインシステム

+

std-26B-150 デザインシステム

std-24B-150 デザインシステム

std-22B-150 デザインシステム

-

std-20B-160 デザインシステム

+

std-20B-150 デザインシステム

std-18B-160 デザインシステム

std-17B-170 デザインシステム

std-16B-170 デザインシステム

From 422b0b6393b91a9d6f459e900544397da984d37d Mon Sep 17 00:00:00 2001 From: "keisuke.okafuji" Date: Wed, 16 Oct 2024 10:19:44 +0900 Subject: [PATCH 3/3] chore: remove old colors --- examples/src/color/ColorSection.tsx | 102 +--------------------------- src/index.ts | 75 -------------------- 2 files changed, 1 insertion(+), 176 deletions(-) diff --git a/examples/src/color/ColorSection.tsx b/examples/src/color/ColorSection.tsx index 1e665d0..67ec8d7 100644 --- a/examples/src/color/ColorSection.tsx +++ b/examples/src/color/ColorSection.tsx @@ -5,7 +5,7 @@ export const ColorSection = () => { <>
-

Color 2.0

+

Color

例ではbg-*を利用していますが、text-*やfill-*、border-*等、色関連は全てに適用されます。

@@ -221,106 +221,6 @@ export const ColorSection = () => {
- -
- -
-
-

Color

-

旧カラースタイルです。

-
- - - - - - -
); }; diff --git a/src/index.ts b/src/index.ts index df6ec87..76a2d4e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,81 +7,6 @@ const daPlugin = plugin(() => {}, { colors: { white: tokens.Color.Neutral.White.value, black: tokens.Color.Neutral.Black.value, - sea: { - 50: tokens.Color.Primitive.Sea[50].value, - 100: tokens.Color.Primitive.Sea[100].value, - 200: tokens.Color.Primitive.Sea[200].value, - 300: tokens.Color.Primitive.Sea[300].value, - 400: tokens.Color.Primitive.Sea[400].value, - 500: tokens.Color.Primitive.Sea[500].value, - 600: tokens.Color.Primitive.Sea[600].value, - 700: tokens.Color.Primitive.Sea[700].value, - 800: tokens.Color.Primitive.Sea[800].value, - 900: tokens.Color.Primitive.Sea[900].value, - 1000: tokens.Color.Primitive.Sea[1000].value, - 1100: tokens.Color.Primitive.Sea[1100].value, - 1200: tokens.Color.Primitive.Sea[1200].value, - }, - sumi: { - 50: tokens.Color.Primitive.Sumi[50].value, - 100: tokens.Color.Primitive.Sumi[100].value, - 200: tokens.Color.Primitive.Sumi[200].value, - 300: tokens.Color.Primitive.Sumi[300].value, - 400: tokens.Color.Primitive.Sumi[400].value, - 500: tokens.Color.Primitive.Sumi[500].value, - 600: tokens.Color.Primitive.Sumi[600].value, - 700: tokens.Color.Primitive.Sumi[700].value, - 800: tokens.Color.Primitive.Sumi[800].value, - 900: tokens.Color.Primitive.Sumi[900].value, - 1000: tokens.Color.Primitive.Sumi[1000].value, - 1100: tokens.Color.Primitive.Sumi[1100].value, - 1200: tokens.Color.Primitive.Sumi[1200].value, - }, - forest: { - 50: tokens.Color.Primitive.Forest[50].value, - 100: tokens.Color.Primitive.Forest[100].value, - 200: tokens.Color.Primitive.Forest[200].value, - 300: tokens.Color.Primitive.Forest[300].value, - 400: tokens.Color.Primitive.Forest[400].value, - 500: tokens.Color.Primitive.Forest[500].value, - 600: tokens.Color.Primitive.Forest[600].value, - 700: tokens.Color.Primitive.Forest[700].value, - 800: tokens.Color.Primitive.Forest[800].value, - 900: tokens.Color.Primitive.Forest[900].value, - 1000: tokens.Color.Primitive.Forest[1000].value, - 1100: tokens.Color.Primitive.Forest[1100].value, - 1200: tokens.Color.Primitive.Forest[1200].value, - }, - wood: { - 50: tokens.Color.Primitive.Wood[50].value, - 100: tokens.Color.Primitive.Wood[100].value, - 200: tokens.Color.Primitive.Wood[200].value, - 300: tokens.Color.Primitive.Wood[300].value, - 400: tokens.Color.Primitive.Wood[400].value, - 500: tokens.Color.Primitive.Wood[500].value, - 600: tokens.Color.Primitive.Wood[600].value, - 700: tokens.Color.Primitive.Wood[700].value, - 800: tokens.Color.Primitive.Wood[800].value, - 900: tokens.Color.Primitive.Wood[900].value, - 1000: tokens.Color.Primitive.Wood[1000].value, - 1100: tokens.Color.Primitive.Wood[1100].value, - 1200: tokens.Color.Primitive.Wood[1200].value, - }, - sun: { - 50: tokens.Color.Primitive.Sun[50].value, - 100: tokens.Color.Primitive.Sun[100].value, - 200: tokens.Color.Primitive.Sun[200].value, - 300: tokens.Color.Primitive.Sun[300].value, - 400: tokens.Color.Primitive.Sun[400].value, - 500: tokens.Color.Primitive.Sun[500].value, - 600: tokens.Color.Primitive.Sun[600].value, - 700: tokens.Color.Primitive.Sun[700].value, - 800: tokens.Color.Primitive.Sun[800].value, - 900: tokens.Color.Primitive.Sun[900].value, - 1000: tokens.Color.Primitive.Sun[1000].value, - 1100: tokens.Color.Primitive.Sun[1100].value, - 1200: tokens.Color.Primitive.Sun[1200].value, - }, blue: { 50: tokens.Color.Primitive.Blue[50].value, 100: tokens.Color.Primitive.Blue[100].value,