Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
a124f55
Match font-weight with docs
JayGeorge Jan 20, 2026
af43716
Tidy CSS
JayGeorge Jan 20, 2026
75dd459
Tidy CSS headings
JayGeorge Jan 20, 2026
b19deff
Use @scope. It's supported everywhere now and the fallback looks fine
JayGeorge Jan 20, 2026
2564577
Tidy CSS
JayGeorge Jan 20, 2026
d31f0a8
Bring the style closer to the Docs
JayGeorge Jan 20, 2026
6736a70
Make the logo nice
JayGeorge Jan 20, 2026
97b2fe1
Tidy CSS
JayGeorge Jan 20, 2026
debc8d9
Start styling the sidebar
JayGeorge Jan 20, 2026
0b1209b
Move the sidebar styling to a stylesheet instead, it's much easier to…
JayGeorge Jan 20, 2026
ba4e4ee
Style sidebar
JayGeorge Jan 20, 2026
9f218ee
More styling
JayGeorge Jan 20, 2026
7a1005c
At least have _some_ syntax highlighting, since prism does not seem t…
JayGeorge Jan 21, 2026
cfd02ab
Update Prism theme
JayGeorge Jan 21, 2026
e8baaec
Update Prism theme - improve syntax highlighting
JayGeorge Jan 21, 2026
9320ac0
remove recently added prism-react-renderer dependency, we don't need it
JayGeorge Jan 21, 2026
43dd6be
Update Prism theme - improve syntax highlighting
JayGeorge Jan 21, 2026
37073e2
Update Prism theme - fix some `<` highlighting
JayGeorge Jan 21, 2026
a3123c4
Update Prism theme - tweak colors
JayGeorge Jan 21, 2026
3d15e50
Update Prism theme - tweak colors
JayGeorge Jan 21, 2026
1877404
Update Prism theme - improve JS highlighting
JayGeorge Jan 21, 2026
47d23b3
Improve readability
JayGeorge Jan 21, 2026
953b321
Improve readability
JayGeorge Jan 21, 2026
3dfc7e9
Add a bit more bottom margin to h1
JayGeorge Jan 21, 2026
5590351
Code blocks - fix border-radius
JayGeorge Jan 21, 2026
0f26748
Make body color darker to compensate for antialiasing
JayGeorge Jan 21, 2026
81b6dad
Style topbar to match Statamic branding
JayGeorge Jan 21, 2026
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: 2 additions & 0 deletions .storybook/manager-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700&family=Source+Code+Pro:wght@400;500&display=swap" rel="stylesheet">

<link rel="stylesheet" href="manager-head.css">
7 changes: 5 additions & 2 deletions .storybook/manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ const theme = create({
base: 'light',
brandTitle: 'Statamic UI Components',
brandUrl: 'https://statamic.dev',
brandImage: '/logo.png',
brandImage: '/logo.svg',
fontBase: '"Lexend", sans-serif',
fontCode: '"Source Code Pro", monospace'
fontCode: '"Source Code Pro", monospace',

appBorderColor: 'hsl(287deg 80% 90%)',
textColor: '#181a1b',
});

addons.setConfig({
Expand Down
1 change: 1 addition & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const preview: Preview = {
base: 'light',
fontBase: '"Lexend", sans-serif',
fontCode: '"Source Code Pro", monospace',
textColor: '#181a1b',
}),
source: {
transform: (code: string) => cleanCodeSnippet(code),
Expand Down
1 change: 1 addition & 0 deletions .storybook/public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 55 additions & 0 deletions .storybook/public/manager-head.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
:root {
--color-purple-light-1: hsl(256deg 60% 85%);
--color-purple: hsl(256deg 70% 55%);
}

/* GROUP SIDEBAR
=================================================== */
.sidebar-container {
.sidebar-item {
--tree-node-background-hover: hsl(256deg 60% 90%)!important;
}
[data-selected="true"],
[data-selected="true"] *,
[data-selected="true"] *:hover {
background: var(--color-purple-light-1)!important;
background: var(--color-purple)!important;
box-shadow: none!important;
outline: none;
}
[data-selected="true"] {
border-radius: 10px;
@supports (corner-shape: squircle) {
border-radius: 50px;
corner-shape: squircle;
}
}
}

/* GROUP TOPBAR
=================================================== */
.sb-bar {
/* Theme Selector */
[id*="select-"] {
background: hsl(256deg 60% 96%);
color: var(--color-purple);
}
button {
&:hover {
color: var(--color-purple);
background: hsl(256deg 60% 93%);
}
}
}
/* This is the best we can do, there are no other hooks */
[aria-label="Theme selector"] {
[role="option"] {
&[aria-selected="true"] {
color: var(--color-purple);
}
&:hover {
color: var(--color-purple);
background: hsl(256deg 60% 96%);
}
}
}
Loading
Loading