Skip to content

Commit 3b84bb4

Browse files
committed
docs(css): update brand colors and button styles for Robot Framework theme
1 parent aa02835 commit 3b84bb4

File tree

1 file changed

+35
-38
lines changed

1 file changed

+35
-38
lines changed

docs/.vitepress/theme/style.css

Lines changed: 35 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,16 @@
4949
--vp-c-default-3: var(--vp-c-gray-3);
5050
--vp-c-default-soft: var(--vp-c-gray-soft);
5151

52-
--vp-c-brand-1: var(--vp-c-indigo-1);
53-
--vp-c-brand-2: var(--vp-c-indigo-2);
54-
--vp-c-brand-3: var(--vp-c-indigo-3);
55-
--vp-c-brand-soft: var(--vp-c-indigo-soft);
52+
/* Robot Framework-like brand: teal / blue-green */
53+
--vp-c-brand-1: #0b7285; /* strong teal for text and accents */
54+
--vp-c-brand-2: #138496; /* hover */
55+
--vp-c-brand-3: #0a6b73; /* button bg */
56+
--vp-c-brand-soft: rgba(10,107,115,0.08);
5657

57-
--vp-c-tip-1: var(--vp-c-brand-1);
58-
--vp-c-tip-2: var(--vp-c-brand-2);
59-
--vp-c-tip-3: var(--vp-c-brand-3);
60-
--vp-c-tip-soft: var(--vp-c-brand-soft);
58+
--vp-c-tip-1: #0b7285;
59+
--vp-c-tip-2: #138496;
60+
--vp-c-tip-3: #0a6b73;
61+
--vp-c-tip-soft: rgba(10,107,115,0.06);
6162

6263
--vp-c-warning-1: var(--vp-c-yellow-1);
6364
--vp-c-warning-2: var(--vp-c-yellow-2);
@@ -84,34 +85,26 @@
8485
--vp-button-brand-active-border: transparent;
8586
--vp-button-brand-active-text: var(--vp-c-white);
8687
--vp-button-brand-active-bg: var(--vp-c-brand-1);
88+
89+
/* Slightly larger buttons to match Robot Framework site feel */
90+
.vp-theme-default .vp-button {
91+
padding: 0.6rem 1rem;
92+
border-radius: 8px;
93+
}
8794
}
8895

8996
/**
9097
* Component: Home
9198
* -------------------------------------------------------------------------- */
9299

93100
:root {
94-
--vp-home-hero-name-color: transparent;
95-
--vp-home-hero-name-background: -webkit-linear-gradient(90deg,
96-
#234a34 10%,
97-
#e9e9e2);
98-
99-
--vp-home-hero-image-background-image: linear-gradient(-45deg,
100-
#242f29 50%,
101-
#2e4e31 50%);
102-
--vp-home-hero-image-filter: blur(44px);
103-
}
101+
--vp-home-hero-name-color: #ffffff;
102+
--vp-home-hero-name-background: linear-gradient(90deg, #0b7285 0%, #138496 100%);
104103

105-
@media (min-width: 640px) {
106-
:root {
107-
--vp-home-hero-image-filter: blur(56px);
108-
}
104+
/* Hero adjustments */
105+
.VPHero {
106+
background: linear-gradient(180deg, rgba(11,114,133,0.06) 0%, transparent 60%);
109107
}
110-
111-
@media (min-width: 960px) {
112-
:root {
113-
--vp-home-hero-image-filter: blur(68px);
114-
}
115108
}
116109

117110
/**
@@ -121,8 +114,12 @@
121114
:root {
122115
--vp-custom-block-tip-border: transparent;
123116
--vp-custom-block-tip-text: var(--vp-c-text-1);
124-
--vp-custom-block-tip-bg: var(--vp-c-brand-soft);
125-
--vp-custom-block-tip-code-bg: var(--vp-c-brand-soft);
117+
--vp-custom-block-tip-bg: rgba(10,107,115,0.06);
118+
--vp-custom-block-tip-code-bg: rgba(10,107,115,0.04);
119+
120+
/* Warning / danger softer palettes */
121+
--vp-c-warning-soft: rgba(255,193,7,0.06);
122+
--vp-c-danger-soft: rgba(220,53,69,0.06);
126123
}
127124

128125
/**
@@ -138,18 +135,18 @@
138135
* -------------------------------------------------------------------------- */
139136

140137
:root {
141-
--vp-font-family-base: 'Inter', ui-sans-serif, system-ui, sans-serif,
142-
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
143-
--vp-font-family-mono: ui-monospace, 'Menlo', 'Monaco', 'Consolas',
144-
'Liberation Mono', 'Courier New', monospace;
138+
--vp-font-family-base:
139+
"Inter", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
140+
"Noto Color Emoji";
141+
--vp-font-family-mono: ui-monospace, "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;
145142
font-optical-sizing: auto;
146143
}
147144

148145
:root:where(:lang(zh)) {
149-
--vp-font-family-base: 'Punctuation SC', 'Inter', ui-sans-serif, system-ui,
150-
'PingFang SC', 'Noto Sans CJK SC', 'Noto Sans SC', 'Heiti SC', 'DengXian',
151-
'Microsoft YaHei', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
152-
'Segoe UI Symbol', 'Noto Color Emoji';
146+
--vp-font-family-base:
147+
"Punctuation SC", "Inter", ui-sans-serif, system-ui, "PingFang SC", "Noto Sans CJK SC", "Noto Sans SC", "Heiti SC",
148+
"DengXian", "Microsoft YaHei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
149+
"Noto Color Emoji";
153150
}
154151

155152
.VPHero .name {
@@ -177,4 +174,4 @@ kbd {
177174
background-color: var(--vp-input-switch-bg-color);
178175
border: 1px solid var(--vp-input-border-color);
179176
border-radius: 6px;
180-
}
177+
}

0 commit comments

Comments
 (0)