Skip to content

Commit

Permalink
feat: theme css
Browse files Browse the repository at this point in the history
  • Loading branch information
edikdeisling committed Nov 8, 2024
1 parent d264db5 commit b5c2f5f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
24 changes: 15 additions & 9 deletions packages/ui/src/styles/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@

@layer acv-reset {
*,
::before,
::after {
:before,
:after {
box-sizing: border-box;
background-repeat: no-repeat;
}

::before,
::after {
:before,
:after {
text-decoration: inherit;
vertical-align: inherit;
}
Expand All @@ -28,7 +28,7 @@
overflow-wrap: break-word;
tab-size: 4;
-webkit-tap-highlight-color: transparent;
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
hanging-punctuation: first last;
}

Expand Down Expand Up @@ -67,12 +67,14 @@
}

pre {
font-family: monospace, monospace;
font-family: monospace;
/* stylelint-disable-next-line scale-unlimited/declaration-strict-value */
font-size: 1em;
overflow: auto;
}

small {
/* stylelint-disable-next-line scale-unlimited/declaration-strict-value */
font-size: 80%;
}

Expand All @@ -85,6 +87,7 @@
embed,
object {
display: block;
/* stylelint-disable-next-line plugin/declaration-block-no-ignored-properties */
vertical-align: middle;
align-self: center;
}
Expand All @@ -109,7 +112,8 @@
}

code, kbd, samp {
font-family: monospace, monospace;
font-family: monospace;
/* stylelint-disable-next-line scale-unlimited/declaration-strict-value */
font-size: 1em;
}

Expand Down Expand Up @@ -172,7 +176,8 @@
font: inherit;
}

::-webkit-input-placeholder {
/* stylelint-disable-next-line selector-pseudo-element-no-unknown */
::input-placeholder {
color: inherit;
opacity: 0.54;
}
Expand Down Expand Up @@ -209,13 +214,14 @@
}

button {
-webkit-appearance: button;
appearance: button;
border: 0;
background: none;
text-align: inherit;
}

a {
/* stylelint-disable-next-line scale-unlimited/declaration-strict-value */
color: currentcolor;
cursor: pointer;
text-decoration: none;
Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/styles/themes/acronis/acronis-dark.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,6 @@
--acv-color-text-status-success: hsl(88deg 85% 24%);
--acv-color-text-status-warning: hsl(30deg 50% 37%);
--acv-font-family-default: var(--acv-base-font-family-inter) sans-serif;
/* stylelint-disable-next-line scale-unlimited/declaration-strict-value */
color-scheme: dark;
}
1 change: 1 addition & 0 deletions packages/ui/src/styles/themes/acronis/acronis-light.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,6 @@
--acv-color-text-status-success: hsl(88deg 85% 24%);
--acv-color-text-status-warning: hsl(30deg 50% 37%);
--acv-font-family-default: var(--acv-base-font-family-inter) sans-serif;
/* stylelint-disable-next-line scale-unlimited/declaration-strict-value */
color-scheme: light;
}

0 comments on commit b5c2f5f

Please sign in to comment.