Skip to content

Commit

Permalink
refactor: renaming primer theme variables
Browse files Browse the repository at this point in the history
  • Loading branch information
cadgerfeast committed Sep 6, 2024
1 parent f65d6c4 commit c694f29
Show file tree
Hide file tree
Showing 45 changed files with 496 additions and 1,892 deletions.
1 change: 0 additions & 1 deletion docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ export default defineConfig({
{ text: 'Flash', link: '/guide/components/flash' },
{ text: 'Icon', link: '/guide/components/icon' },
{ text: 'Keyboard', link: '/guide/components/keyboard' },
{ text: 'Layout', link: '/guide/components/layout' },
{ text: 'Popover', link: '/guide/components/popover' },
{ text: 'Splitter', link: '/guide/components/splitter' },
{ text: 'Spinner', link: '/guide/components/spinner' },
Expand Down
3 changes: 0 additions & 3 deletions docs/src/components/playground/blankslate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@
width: 60%;
> sl-blankslate {
width: 100%;
sl-icon {
color: var(--pr-cornflower-blue);
}
}
}
> sl-form {
Expand Down
124 changes: 0 additions & 124 deletions docs/src/components/playground/layout.vue

This file was deleted.

2 changes: 0 additions & 2 deletions docs/src/guide/components/avatar.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ A `sl-avatar` component shows an image that usually represent a user or known en

<Preview>
<sl-avatar name="John Doe"/>
<sl-avatar name="John Doe" background="#4A4052"/>
<sl-avatar name="Slithe" src="/favicon.svg"/>
</Preview>

``` html
<sl-avatar name="John Doe"/>
<sl-avatar name="John Doe" background="#4A4052"/>
<sl-avatar name="Slithe" src="/favicon.svg"/>
```

Expand Down
2 changes: 0 additions & 2 deletions docs/src/guide/components/button.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ Size defaults to `medium`.
<Preview title="Variants">
<sl-button>Default</sl-button>
<sl-button primary>Primary</sl-button>
<sl-button outline>Outline</sl-button>
<sl-button danger>Danger</sl-button>
<sl-button borderless>Borderless</sl-button>
<sl-button link>Link</sl-button>
Expand All @@ -50,7 +49,6 @@ Size defaults to `medium`.
<!-- Variants -->
<sl-button>Default</sl-button>
<sl-button primary>Primary</sl-button>
<sl-button outline>Outline</sl-button>
<sl-button danger>Danger</sl-button>
<sl-button borderless>Borderless</sl-button>
<!-- Size -->
Expand Down
97 changes: 0 additions & 97 deletions docs/src/guide/components/layout.md

This file was deleted.

2 changes: 2 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/@slithe/primer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"@types/primer__octicons": "^17.5.0",
"eslint": "^8.56.0",
"sass": "^1.69.5",
"slithe": "*",
"vite": "^5.0.11"
},
"license": "MIT"
Expand Down
10 changes: 1 addition & 9 deletions packages/@slithe/primer/src/components/action-divider.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
// Light
:host([sl-theme=light]) {
--sl-action-divider-color: rgba(208, 215, 222, 0.48);
}
// Dark
:host([sl-theme=dark]) {
--sl-action-divider-color: rgba(68, 76, 86, 0.48);
}
// Action Divider
li.sl-action-divider {
width: 100%;
height: 1px;
background-color: var(--sl-action-divider-color);
background-color: var(--slithe-primer-divider-color);
margin: 7px 0 8px 0;
}
10 changes: 1 addition & 9 deletions packages/@slithe/primer/src/components/action-group.scss
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
// Light
:host([sl-theme=light]) {
--sl-action-group-title-color: rgb(101, 109, 118);
}
// Dark
:host([sl-theme=dark]) {
--sl-action-group-title-color: rgb(118, 131, 144);
}
// Action Group
li.sl-action-group {
width: 100%;
> span.label {
padding: 6px 16px;
font-size: 12px;
font-weight: 600;
color: var(--sl-action-group-title-color);
color: var(--slithe-primer-text-color-2);
}
}
Loading

0 comments on commit c694f29

Please sign in to comment.