diff --git a/packages/lucide-figma/src/components/EditBar/EditBar.scss b/packages/lucide-figma/src/components/EditBar/EditBar.scss new file mode 100644 index 000000000..e69de29bb diff --git a/packages/lucide-figma/src/components/IconButton/IconButton.scss b/packages/lucide-figma/src/components/IconButton/IconButton.scss index 78980aa57..d3611c06d 100644 --- a/packages/lucide-figma/src/components/IconButton/IconButton.scss +++ b/packages/lucide-figma/src/components/IconButton/IconButton.scss @@ -1,18 +1,20 @@ .icon-button { padding: 8px; - color: var(--color-black); + color: var(--figma-color-text); background: transparent; border: 0; - border-radius: 2px; + border-radius: 4px; appearance: none; outline: 0; + cursor: pointer; + aspect-ratio: 1; &:hover { - background: rgba(0, 0, 0, 0.06); + background: var(--figma-color-bg-hover); } &:focus, &:active { - box-shadow: inset 0 0 0 2px var(--color-blue); + box-shadow: inset 0 0 0 2px var(--figma-color-border-selected); } } diff --git a/packages/lucide-figma/src/components/Menu/Menu.scss b/packages/lucide-figma/src/components/Menu/Menu.scss index b1bb86708..e412ba5a9 100644 --- a/packages/lucide-figma/src/components/Menu/Menu.scss +++ b/packages/lucide-figma/src/components/Menu/Menu.scss @@ -4,20 +4,20 @@ flex-shrink: 0; height: 40px; line-height: 40px; - border-bottom: 1px solid var(--color-border, #e5e5e5); + border-bottom: 1px solid var(--figma-color-border); justify-content: flex-start; } .menu-item { font-weight: 500; font-size: 11px; - color: var(--color-text-tertiary, #b3b3b3); + color: var(--figma-color-text-tertiary); padding: 0 8px; text-transform: capitalize; cursor: pointer; &.active { - color: var(--color-text, #333333); + color: var(--figma-color-text); } &:first-child { diff --git a/packages/lucide-figma/src/components/SearchInput/SearchInput.scss b/packages/lucide-figma/src/components/SearchInput/SearchInput.scss index e6acd487a..e67dc48c2 100644 --- a/packages/lucide-figma/src/components/SearchInput/SearchInput.scss +++ b/packages/lucide-figma/src/components/SearchInput/SearchInput.scss @@ -6,8 +6,12 @@ .icon { position: absolute; left: 16px; + fill: var(--figma-color-text); + opacity: .5; } input { + background: var(--figma-color-bg); + color: var(--figma-color-text); width: 100%; height: 40px; padding: 0 16px 0 36px; diff --git a/packages/lucide-figma/src/components/Skeleton/Skeleton.scss b/packages/lucide-figma/src/components/Skeleton/Skeleton.scss index 080e169a8..0138cfcf6 100644 --- a/packages/lucide-figma/src/components/Skeleton/Skeleton.scss +++ b/packages/lucide-figma/src/components/Skeleton/Skeleton.scss @@ -5,14 +5,9 @@ } .skeleton { - --block: rgba(0, 0, 0, 0.06); - --loader: hsl(0 0% 89%); - background: - linear-gradient(-75deg, transparent 40%, var(--loader), transparent 60%) 0 0 / 200% 100%, - var(--block); - - border-radius: calc(var(--padding) * 0.5); + linear-gradient(-75deg, transparent 40%, var(--figma-color-bg-tertiary), transparent 60%) 0 0 / 200% 100%, + var(--figma-color-bg-secondary); animation: load 2s infinite linear; background-attachment: fixed; width: 40px; diff --git a/packages/lucide-figma/src/icons/search-large.svg b/packages/lucide-figma/src/icons/search-large.svg index 6e6a12b34..84ed05f75 100644 --- a/packages/lucide-figma/src/icons/search-large.svg +++ b/packages/lucide-figma/src/icons/search-large.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/packages/lucide-figma/src/icons/search.svg b/packages/lucide-figma/src/icons/search.svg index e6473bfb7..17cbdfebd 100644 --- a/packages/lucide-figma/src/icons/search.svg +++ b/packages/lucide-figma/src/icons/search.svg @@ -1 +1 @@ - \ No newline at end of file + diff --git a/packages/lucide-figma/src/interface/interface.scss b/packages/lucide-figma/src/interface/interface.scss index 35ad229b9..5b401b368 100644 --- a/packages/lucide-figma/src/interface/interface.scss +++ b/packages/lucide-figma/src/interface/interface.scss @@ -18,11 +18,6 @@ url('https://rsms.me/inter/font-files/Inter-Medium.woff?v=3.9') format('woff'); } -:root { - --color-blue: #18a0fb; - --color-black: #333; -} - body { font-family: Inter, sans-serif; font-size: 11px; @@ -32,10 +27,14 @@ body { .search-input { position: sticky; top: 0; - border-bottom: 1px solid #e5e5e5; + border-bottom: 1px solid var(--figma-color-border); backface-visibility: hidden; } +.search-input { + border-bottom: 1px solid var(--figma-color-border); +} + main { padding-bottom: 8px; } @@ -44,13 +43,17 @@ main { display: grid; grid-template-columns: repeat(6, 1fr); grid-gap: 8px; + padding: 4px; } footer { - margin-top: 8px; + position: sticky; + bottom: 0; padding: 8px; font-size: 12px; - color: rgba(0, 0, 0, 0.5); + color: var(--figma-color-text-tertiary); + background: var(--figma-color-bg); + border-top: 1px solid var(--figma-color-border); .footer-link { color: inherit; @@ -74,15 +77,16 @@ footer { } .lucide-logo { + color: var(--figma-color-text); width: 160px; } .version { margin-top: 8px; padding: 8px; - font-weight: bold; + font-weight: normal; font-size: 18px; - color: rgba(0, 0, 0, 0.5); + color: var(--figma-color-text-secondary); } .link-list { @@ -92,7 +96,7 @@ footer { } .info-link { - color: var(--color-blue); + color: var(--figma-color-text-brand); display: block; padding: 2px 0; text-decoration: none; diff --git a/packages/lucide-figma/src/main.ts b/packages/lucide-figma/src/main.ts index 7815642f1..7aaaf193c 100644 --- a/packages/lucide-figma/src/main.ts +++ b/packages/lucide-figma/src/main.ts @@ -144,6 +144,6 @@ figma.on('run', (event) => { cachedIcons, }); } else { - figma.showUI(__uiFiles__.interface, { width: 300, height: 400 }); + figma.showUI(__uiFiles__.interface, { width: 300, height: 400, themeColors: true }); } });