Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(theming): some styling and content updates #1953

Merged
merged 14 commits into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/styles/lightdom.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@layer masthead, sidenav, code-block, permalink, repo-status-list, footer;
@layer masthead, sidenav, permalink, repo-status-list, footer, code-block;

@import url('/assets/packages/@uxdot/elements/uxdot-masthead-lightdom.css') layer(masthead);
@import url('/assets/packages/@uxdot/elements/uxdot-sidenav-lightdom.css') layer(sidenav);
Expand Down
13 changes: 12 additions & 1 deletion docs/theming/color-palettes.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,33 @@
}

.surface-grid,
.tile-grid {
.color-palette-grid {
display: grid;
padding: 0;
list-style-type: none;
gap: var(--rh-space-sm);
grid-template-columns: 1fr 1fr 1fr;
text-align: center;
}

.surface-grid {
grid-template-columns: 1fr 1fr;

::part(header) {
margin-block-end: 1rem;
}
}

.icon-card {
--rh-icon-size: var(--rh-size-icon-07);
}

.color-palette-grid rh-surface {
padding: 2rem;
border-radius: var(--rh-border-radius-default);
border: var(--rh-border-width-sm) solid var(--rh-color-border-subtle);
}

.pullquote-card {
min-width: 360px;
margin: var(--rh-space-2xl);
Expand Down
16 changes: 8 additions & 8 deletions docs/theming/color-palettes.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ creating themeable, responsive graphics.
**Providers** define the **color palette** for themselves and their child
elements. There are six color palettes in RHDS:

<ol class="tile-grid">
<li><rh-tile color-palette="lightest">Lightest</rh-tile></li>
<li><rh-tile color-palette="lighter">Lighter</rh-tile></li>
<li><rh-tile color-palette="light">Light</rh-tile></li>
<li><rh-tile color-palette="dark">Dark</rh-tile></li>
<li><rh-tile color-palette="darker">Darker</rh-tile></li>
<li><rh-tile color-palette="darkest">Darkest</rh-tile></li>
<ol class="color-palette-grid">
<li><rh-surface color-palette="lightest">Lightest</rh-surface></li>
<li><rh-surface color-palette="lighter">Lighter</rh-surface></li>
<li><rh-surface color-palette="light">Light</rh-surface></li>
<li><rh-surface color-palette="dark">Dark</rh-surface></li>
<li><rh-surface color-palette="darker">Darker</rh-surface></li>
<li><rh-surface color-palette="darkest">Darkest</rh-surface></li>
</ol>

Context providers typically use the `lightest` color palette as the default.
Expand Down Expand Up @@ -143,7 +143,7 @@ the color palette of it's containing surface. There are two backgrounds in RHDS:

<li>
<rh-card class="icon-card" color-palette="darkest">
<rh-icon slot="header" icon="umbrella"></rh-icon>
<rh-icon slot="header" icon="lighthouse"></rh-icon>
<span slot="header">Dark</span>
</rh-card></li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion eleventy.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default async function(eleventyConfig: UserConfig) {
eleventyConfig.addPassthroughCopy('docs/robots.txt');
eleventyConfig.addPassthroughCopy('docs/assets/**/*');
eleventyConfig.addPassthroughCopy('docs/styles/**/*');
eleventyConfig.addPassthroughCopy('docs/foundations/**/*.{css,js}');
eleventyConfig.addPassthroughCopy('docs/**/*.{css,js}');

if (isLocal) {
eleventyConfig.addPassthroughCopy({
Expand Down
Loading