Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

portico: Extract newer colors to variables file.

Karl Stolley63a095285e22
diff --git a/web/styles/portico/portico_variables.css b/web/styles/portico/portico_variables.css
new file mode 100644
index 00000000000..90a6fb6f513
--- /dev/null
+++ b/web/styles/portico/portico_variables.css
@@ -0,0 +1,25 @@
+:root {
+ --color-background-gradient-start: hsl(209deg 40% 50%);
+ --color-background-gradient-end: hsl(210deg 48% 69%);
+ --font-ss3: "Source Sans 3 VF", sans-serif;
+ --font-ops: "Open Sans Variable", sans-serif;
+ --color-background-box: hsl(210deg 44% 92%);
+ --color-background-box-muted: hsl(0deg 0% 100% / 50%);
+ --color-background-box-muted-hover: hsl(0deg 0% 100% / 60%);
+ --color-plan-tab-header: hsl(223deg 40% 30%);
+ --color-plan-tab-copy: hsl(223deg 40% 25% / 70%);
+ --color-box-header: hsl(223deg 43% 25%);
+ --color-box-copy: hsl(223deg 43% 25%);
+ --color-box-copy-fine-print: hsl(223deg 43% 55%);
+ --color-link: hsl(210deg 94% 42%);
+ --color-link-hover: hsl(210deg 100% 50%);
+ --color-link-underline: hsl(210deg 94% 42% / 30%);
+ --color-link-underline-hover: hsl(210deg 100% 50%);
+ --color-link-underline-alternate: hsl(210deg 94% 100% / 40%);
+ --color-link-underline-alternate-hover: hsl(210deg 94% 100% / 80%);
+
+ @media (prefers-color-scheme: dark) {
+ --color-background-gradient-start: hsl(209deg 63% 40%);
+ --color-background-gradient-end: hsl(238deg 28% 50%);
+ }
+}
diff --git a/web/styles/portico/pricing_plans.css b/web/styles/portico/pricing_plans.css
index 378c18a143e..c066a1947ef 100644
--- a/web/styles/portico/pricing_plans.css
+++ b/web/styles/portico/pricing_plans.css
@@ -1,30 +1,4 @@
-:root {
- --color-background-gradient-start: hsl(209deg 40% 50%);
- --color-background-gradient-end: hsl(210deg 48% 69%);
-
- @media (prefers-color-scheme: dark) {
- --color-background-gradient-start: hsl(209deg 63% 40%);
- --color-background-gradient-end: hsl(238deg 28% 50%);
- }
-}
-
.portico-pricing {
- --font-ss3: "Source Sans 3 VF", sans-serif;
- --font-ops: "Open Sans Variable", sans-serif;
- --color-background-box: hsl(210deg 44% 92%);
- --color-background-box-muted: hsl(0deg 0% 100% / 50%);
- --color-background-box-muted-hover: hsl(0deg 0% 100% / 60%);
- --color-plan-tab-header: hsl(223deg 40% 30%);
- --color-plan-tab-copy: hsl(223deg 40% 25% / 70%);
- --color-box-header: hsl(223deg 43% 25%);
- --color-box-copy: hsl(223deg 43% 25%);
- --color-box-copy-fine-print: hsl(223deg 43% 55%);
- --color-link: hsl(210deg 94% 42%);
- --color-link-hover: hsl(210deg 100% 50%);
- --color-link-underline: hsl(210deg 94% 42% / 30%);
- --color-link-underline-hover: hsl(210deg 100% 50%);
- --color-link-underline-alternate: hsl(210deg 94% 100% / 40%);
- --color-link-underline-alternate-hover: hsl(210deg 94% 100% / 80%);
--icon-left-outward-tab-curve: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3cpath fill='white' d='M0 16h16V0c0 8.837-7.163 16-16 16Z'/%3e%3c/svg%3e");
--icon-right-outward-tab-curve: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3e%3cpath fill='white' d='M16 16H0V0c0 8.837 7.163 16 16 16Z'/%3e%3c/svg%3e");
--icon-question-header-swoosh: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='33' height='56' fill='none' viewBox='0 0 33 56'%3e%3cpath fill='%23E2EBF4' d='M33 37 1 56C1 35-3.5 0 33 0 7.5 3 7.776 37 33 37Z'/%3e%3c/svg%3e");
diff --git a/web/webpack.assets.json b/web/webpack.assets.json
index 258774b5080..8b3a414a011 100644
--- a/web/webpack.assets.json
+++ b/web/webpack.assets.json
@@ -59,6 +59,7 @@
"landing-page-with-pricing": [
"./src/bundles/legacy_portico_bundle.ts",
"./src/portico/legacy_landing_page.ts",
+ "./styles/portico/portico_variables.css",
"./styles/portico/legacy_landing_page.css",
"./styles/portico/pricing_plans.css"
],
@@ -76,6 +77,7 @@
"./src/bundles/hello.ts",
"./src/portico/legacy_landing_page.ts",
"./src/portico/header.ts",
+ "./styles/portico/portico_variables.css",
"./styles/portico/hello.css",
"./styles/portico/navbar.css",
"./styles/portico/footer.css",