Skip to content

Commit

Permalink
feat: update to 12-tint color palette
Browse files Browse the repository at this point in the history
  • Loading branch information
monospaced authored and chrisvxd committed Jan 12, 2024
1 parent 88532fb commit d43da58
Show file tree
Hide file tree
Showing 33 changed files with 229 additions and 227 deletions.
6 changes: 3 additions & 3 deletions apps/demo/app/custom-ui/[...puckPath]/client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ const Tabs = ({
fontSize: 16,
padding: "16px 16px",
paddingTop: 19,
color: isCurrentTab ? "var(--puck-color-azure-3)" : "black",
color: isCurrentTab ? "var(--puck-color-azure-04)" : "black",
border: "none",
borderBottom: isCurrentTab
? "3px solid var(--puck-color-azure-3)"
? "3px solid var(--puck-color-azure-04)"
: "3px solid transparent",
background: "white",
cursor: "pointer",
Expand Down Expand Up @@ -304,7 +304,7 @@ export function Client({ path, isEdit }: { path: string; isEdit: boolean }) {
display: "flex",
pointerEvents: "all",
padding: "16px",
background: "var(--puck-color-grey-11)",
background: "var(--puck-color-grey-12)",
}}
>
{Object.keys(config.components).map(
Expand Down
6 changes: 3 additions & 3 deletions apps/demo/config/blocks/Card/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@

.Card-icon {
border-radius: 256px;
background: var(--puck-color-azure-8);
color: var(--puck-color-azure-5);
background: var(--puck-color-azure-09);
color: var(--puck-color-azure-06);
display: flex;
justify-content: center;
align-items: center;
Expand All @@ -44,7 +44,7 @@
.Card-description {
font-size: 16px;
line-height: 1.5;
color: var(--puck-color-grey-4);
color: var(--puck-color-grey-05);
text-align: center;
font-weight: 300;
}
Expand Down
6 changes: 3 additions & 3 deletions apps/demo/config/blocks/FeatureList/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@

.FeatureList-icon {
border-radius: 256px;
background: var(--puck-color-azure-8);
color: var(--puck-color-azure-5);
background: var(--puck-color-azure-09);
color: var(--puck-color-azure-06);
display: flex;
justify-content: center;
align-items: center;
Expand All @@ -63,7 +63,7 @@
.FeatureList-description {
font-size: 16px;
line-height: 1.5;
color: var(--puck-color-grey-4);
color: var(--puck-color-grey-05);
text-align: center;
font-weight: 300;
}
Expand Down
4 changes: 2 additions & 2 deletions apps/demo/config/blocks/Hero/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
}

.Hero-subtitle {
color: var(--puck-color-grey-4);
color: var(--puck-color-grey-05);
font-size: var(--puck-font-size-m);
line-height: 1.5;
margin: 0;
Expand All @@ -45,7 +45,7 @@
}

.Hero--hasImageBackground .Hero-subtitle {
color: var(--puck-color-grey-2);
color: var(--puck-color-grey-03);
}

.Hero-image {
Expand Down
2 changes: 1 addition & 1 deletion apps/demo/config/blocks/Logos/styles.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.Logos {
background-color: var(--puck-color-grey-1);
background-color: var(--puck-color-grey-02);
}

.Logos-items {
Expand Down
8 changes: 4 additions & 4 deletions apps/demo/config/blocks/Stats/styles.module.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.Stats-items {
background-image: linear-gradient(
120deg,
var(--puck-color-azure-2) 0%,
var(--puck-color-azure-4) 100%
var(--puck-color-azure-03) 0%,
var(--puck-color-azure-05) 100%
);
border-radius: 24px;
display: grid;
Expand Down Expand Up @@ -40,8 +40,8 @@

.Stats-icon {
border-radius: 256px;
background: var(--puck-color-azure-8);
color: var(--puck-color-azure-5);
background: var(--puck-color-azure-09);
color: var(--puck-color-azure-06);
display: flex;
justify-content: center;
align-items: center;
Expand Down
3 changes: 2 additions & 1 deletion apps/demo/config/blocks/Text/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ export const Text: ComponentConfig<TextProps> = {
<Section padding={padding} maxWidth={maxWidth}>
<span
style={{
color: color === "default" ? "inherit" : "var(--puck-color-grey-4)",
color:
color === "default" ? "inherit" : "var(--puck-color-grey-05)",
display: "flex",
textAlign: align,
width: "100%",
Expand Down
10 changes: 5 additions & 5 deletions apps/demo/config/components/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const FooterLink = ({ children, href }: { children: string; href: string }) => {
style={{
textDecoration: "none",
fontSize: "14px",
color: "var(--puck-color-grey-4)",
color: "var(--puck-color-grey-05)",
}}
>
{children}
Expand All @@ -33,7 +33,7 @@ const FooterList = ({
padding: 0,
fontSize: "inherit",
fontWeight: "600",
color: "var(--puck-color-grey-2)",
color: "var(--puck-color-grey-03)",
}}
>
{title}
Expand All @@ -54,7 +54,7 @@ const FooterList = ({

const Footer = ({ children }: { children: ReactNode }) => {
return (
<footer style={{ background: "var(--puck-color-grey-11)" }}>
<footer style={{ background: "var(--puck-color-grey-12)" }}>
<h2 style={{ visibility: "hidden", height: 0 }}>Footer</h2>
<Section padding="32px">
<div
Expand All @@ -73,8 +73,8 @@ const Footer = ({ children }: { children: ReactNode }) => {
style={{
padding: 64,
textAlign: "center",
color: "var(--puck-color-grey-2)",
background: "var(--puck-color-grey-10)",
color: "var(--puck-color-grey-03)",
background: "var(--puck-color-grey-11)",
}}
>
Made by{" "}
Expand Down
4 changes: 2 additions & 2 deletions apps/demo/config/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const NavItem = ({ label, href }: { label: string; href: string }) => {
style={{
textDecoration: "none",
color: isActive
? "var(--puck-color-grey-1)"
: "var(--puck-color-grey-5)",
? "var(--puck-color-grey-02)"
: "var(--puck-color-grey-06)",
fontWeight: isActive ? "600" : "400",
}}
>
Expand Down
14 changes: 7 additions & 7 deletions apps/docs/components/Preview/styles.module.css
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
.PreviewFrame {
background: white;
border: 1px solid var(--puck-color-grey-8);
border: 1px solid var(--puck-color-grey-09);
color: black;
border-radius: 16px;
margin-top: 32px;
overflow: hidden;
}

.PreviewFrame-header {
background: var(--puck-color-azure-9);
background: var(--puck-color-azure-11);
gap: 8px;
color: var(--puck-color-azure-4);
color: var(--puck-color-azure-05);
font-weight: 0;
padding: 12px 16px;
border-top-left-radius: 15px;
border-top-right-radius: 15px;
border-bottom: 1px solid var(--puck-color-grey-8);
border-bottom: 1px solid var(--puck-color-grey-09);
align-items: center;
}

Expand All @@ -36,7 +36,7 @@
.ConfigPreview {
display: flex;
flex-wrap: wrap;
background: var(--puck-color-grey-8);
background: var(--puck-color-grey-09);
gap: 1px;
}

Expand All @@ -49,7 +49,7 @@
}

.ConfigPreview-preview {
color: var(--puck-color-grey-2);
color: var(--puck-color-grey-03);
flex-grow: 1;
flex-basis: 49%;
min-width: 256px;
Expand All @@ -59,6 +59,6 @@

.ConfigPreview-preview > * {
color: var(
--puck-color-grey-2
--puck-color-grey-03
) !important; /* Override any injected Nextra/Tailwind styles */
}
4 changes: 2 additions & 2 deletions apps/docs/components/ReleaseSwitcher/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
background-size: 12px;
background-position: calc(100% - 12px) calc(50% + 3px);
background-repeat: no-repeat;
background-color: var(--puck-color-grey-10);
background-color: var(--puck-color-grey-11);
border-radius: 100px;
color: black;
padding-left: 16px;
Expand All @@ -16,5 +16,5 @@

.ReleaseSwitcher--light {
background-color: white;
border: 1px solid var(--puck-color-grey-9);
border: 1px solid var(--puck-color-grey-10);
}
6 changes: 3 additions & 3 deletions apps/docs/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
article p a,
article li a,
article td a {
color: var(--puck-color-azure-4) !important;
color: var(--puck-color-azure-05) !important;
}

article p a:hover,
article li a:hover,
article td a:hover {
color: var(--puck-color-azure-2) !important;
color: var(--puck-color-azure-03) !important;
}

html.dark p a:hover,
html.dark li a:hover {
color: var(--puck-color-azure-6) !important;
color: var(--puck-color-azure-07) !important;
}

li > a {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/components/Button/Button.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
}

.Button--secondary:hover {
background-color: var(--puck-color-grey-10);
background-color: var(--puck-color-grey-11);
color: black;
opacity: 0.7;
}
Expand All @@ -66,7 +66,7 @@
}

.Button--disabled {
background: var(--puck-color-grey-10);
background: var(--puck-color-grey-11);
color: black;
cursor: not-allowed;
}
Expand Down
6 changes: 3 additions & 3 deletions packages/core/components/ComponentList/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}

.ComponentList-title {
color: var(--puck-color-grey-4);
color: var(--puck-color-grey-05);
display: flex;
font-size: var(--puck-font-size-xxxs);
list-style: none;
Expand All @@ -30,8 +30,8 @@
}

.ComponentList-title:hover {
background-color: var(--puck-color-azure-9);
color: var(--puck-color-azure-4);
background-color: var(--puck-color-azure-11);
color: var(--puck-color-azure-05);
cursor: pointer;
}

Expand Down
4 changes: 2 additions & 2 deletions packages/core/components/DragIcon/styles.module.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.DragIcon {
color: var(--puck-color-grey-4);
color: var(--puck-color-grey-05);
padding: 4px;
border-radius: 4px;
}

.DragIcon:hover {
cursor: grab;
background: var(--puck-color-grey-9);
background: var(--puck-color-grey-10);
}
20 changes: 10 additions & 10 deletions packages/core/components/DraggableComponent/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

.DraggableComponent--isDragging {
background: #abc7e510;
outline: 2px var(--puck-color-azure-8) solid !important;
outline: 2px var(--puck-color-azure-09) solid !important;
overflow: hidden;
}

Expand Down Expand Up @@ -37,7 +37,7 @@

.DraggableComponent-loadingOverlay {
background: var(--puck-color-white);
color: var(--puck-color-grey-2);
color: var(--puck-color-grey-03);
border-radius: 4px;
display: flex;
padding: 8px;
Expand All @@ -64,7 +64,7 @@

.DraggableComponent:not(.DraggableComponent--isSelected)
> .DraggableComponent-overlay {
outline: 2px var(--puck-color-azure-8) solid !important;
outline: 2px var(--puck-color-azure-09) solid !important;
}

.DraggableComponent--indicativeHover > .DraggableComponent-overlay {
Expand All @@ -82,7 +82,7 @@
}

.DraggableComponent--isSelected {
outline: 2px var(--puck-color-azure-6) solid !important;
outline: 2px var(--puck-color-azure-07) solid !important;
}

.DraggableComponent--isSelected > .DraggableComponent-overlay {
Expand All @@ -102,7 +102,7 @@
border-top-left-radius: 8px;
border-top-right-radius: 8px;
border-radius: 8px;
background: var(--puck-color-grey-0);
background: var(--puck-color-grey-01);
color: white;
display: none;
font-family: var(--puck-font-family);
Expand All @@ -118,7 +118,7 @@
}

.DraggableComponent-actionsLabel {
color: var(--puck-color-grey-7);
color: var(--puck-color-grey-08);
display: flex;
font-size: var(--puck-font-size-xxxs);
font-weight: 500;
Expand All @@ -127,22 +127,22 @@
padding-left: 8px;
padding-right: 16px;
margin-right: 8px;
border-right: 1px solid var(--puck-color-grey-4);
border-right: 1px solid var(--puck-color-grey-05);
text-overflow: ellipsis;
white-space: nowrap;
}

.DraggableComponent-action {
background: transparent;
border: none;
color: var(--puck-color-grey-7);
color: var(--puck-color-grey-08);
padding: 6px 8px;
border-radius: 4px;
overflow: hidden;
}

.DraggableComponent-action:hover {
background: var(--puck-color-grey-2);
color: var(--puck-color-azure-5);
background: var(--puck-color-grey-03);
color: var(--puck-color-azure-06);
cursor: pointer;
}
Loading

0 comments on commit d43da58

Please sign in to comment.