Hi folks!
Just here to share some new colors I’ve been playing around with. My goal here with this color palette is to get closer to WCAG guidelines. Screenshots first, then CSS below. Hope you like what you see ![]()
:root {
/* Text */
--color-text-primary: hsl(0, 0%, 15%);
--color-text-primary-20: hsla(0, 0%, 0%, 0.2);
--color-text-primary-70: hsla(0, 0%, 15%, 0.75);
--color-text-secondary: hsl(0, 0%, 40%);
--color-text-tertiary: hsl(0, 0%, 75%);
--color-text-inversion: hsl(0, 0%, 100%);
--color-text-white: hsl(0, 0%, 100%);
--color-text-white60: hsla(0, 0%, 100%, 0.6);
--color-text-primary-inversion: hsl(0, 0%, 90%);
--color-text-secondary-inversion: hsl(0, 0%, 60%);
--color-text-tertiary-inversion: hsl(0, 0%, 34%);
/* Shape */
--color-shape-secondary-inversion: hsl(0, 0%, 16%);
--color-shape-secondary: hsl(0, 0%, 92%);
--color-shape-primary: var(--color-dark-grey);
--color-shape-highlight-dark: hsla(0, 0%, 0%, 0.4);
--color-shape-tertiary: var(--color-very-light-grey);
--color-shape-highlight-medium: hsla(0, 0%, 0%, 0.05);
--color-shape-highlight-light: hsla(0, 0%, 0%, 0.03);
--color-shape-highlight-light-solid: hsl(0, 0%, 97%);
--color-shape-highlight-add: hsla(94, 100%, 42%, 0.2);
--color-shape-highlight-change: hsla(202, 85%, 55%, 0.2);
--color-shape-highlight-remove: hsla(15, 91%, 55%, 0.2);
/* Control */
--color-control-accent: hsl(0, 0%, 15%);
--color-control-active: hsl(0, 0%, 71%);
--color-control-active-inversion: hsl(0, 0%, 45%);
--color-control-inactive: hsl(0, 0%, 86%);
--color-control-bg: hsl(0, 0%, 100%);
/* Icon */
--color-icon: hsl(0, 0%, 61%);
--color-icon-hover: hsl(0, 0%, 15%);
/* Background */
--color-bg-primary: hsl(0, 0%, 100%);
--color-bg-primary-90: hsla(0, 0%, 100%, 0.9);
--color-bg-primary-inversion: hsl(0, 0%, 9%);
--color-bg-loader: hsla(0, 0%, 100%, 0.7);
--color-attachment-loader: hsla(0, 0%, 53%, 0.7);
/* System */
--color-system-accent-125: hsl(220, 87%, 50%);
--color-system-accent-100: hsl(220, 100%, 61%);
--color-system-accent-50: hsl(220, 100%, 71%);
--color-system-accent-25: hsl(220, 100%, 80%);
--color-system-highlight: hsla(220, 100%, 61%, 0.15);
--color-system-selection: hsla(220, 100%, 61%, 0.251);
--color-system-drop-zone: hsla(220, 100%, 61%, 0.25);
--color-system-destructive-100: hsl(13, 96%, 58%);
--color-system-destructive-50: hsl(15, 90%, 88%);
--color-system-destructive-25: hsl(14, 94%, 94%);
/* Color */
--color-very-light-yellow: hsl(50, 58%, 94%);
--color-light-yellow: hsl(49, 78%, 78%);
--color-yellow: hsl(48, 92%, 46%);
--color-dark-yellow: hsl(46, 78%, 24%);
--color-very-light-orange: hsl(28, 58%, 94%);
--color-light-orange: hsl(27, 78%, 78%);
--color-orange: hsl(26, 92%, 46%);
--color-dark-orange: hsl(24, 78%, 24%);
--color-very-light-red: hsl(4, 58%, 94%);
--color-light-red: hsl(5, 78%, 78%);
--color-red: hsl(6, 92%, 46%);
--color-dark-red: hsl(8, 78%, 24%);
--color-very-light-pink: hsl(332, 58%, 94%);
--color-light-pink: hsl(331, 78%, 78%);
--color-pink: hsl(330, 92%, 48%);
--color-dark-pink: hsl(328, 78%, 24%);
--color-very-light-purple: hsl(276, 58%, 94%);
--color-light-purple: hsl(275, 78%, 78%);
--color-purple: hsl(274, 92%, 48%);
--color-dark-purple: hsl(272, 78%, 24%);
--color-very-light-blue: hsl(224, 58%, 94%);
--color-light-blue: hsl(223, 78%, 78%);
--color-blue: hsl(222, 92%, 48%);
--color-dark-blue: hsl(220, 78%, 24%);
--color-very-light-teal: hsl(172, 58%, 94%);
--color-light-teal: hsl(171, 78%, 78%);
--color-teal: hsl(170, 92%, 42%);
--color-dark-teal: hsl(168, 78%, 22%);
--color-very-light-ice: hsl(198, 58%, 94%);
--color-light-ice: hsl(197, 78%, 78%);
--color-ice: hsl(196, 92%, 46%);
--color-dark-ice: hsl(194, 78%, 24%);
--color-very-light-lime: hsl(96, 58%, 94%);
--color-light-lime: hsl(95, 78%, 78%);
--color-lime: hsl(94, 88%, 40%);
--color-dark-lime: hsl(92, 72%, 22%);
--color-very-light-grey: hsl(220, 10%, 94%);
--color-light-grey: hsl(218, 14%, 74%);
--color-grey: hsl(216, 16%, 46%);
--color-dark-grey: hsl(214, 18%, 22%);
/* Tag */
--color-tag-grey: var(--color-grey);
--color-tag-yellow: var(--color-yellow);
--color-tag-orange: var(--color-orange);
--color-tag-red: var(--color-red);
--color-tag-pink: var(--color-pink);
--color-tag-purple: var(--color-purple);
--color-tag-blue: var(--color-blue);
--color-tag-ice: var(--color-ice);
--color-tag-teal: var(--color-teal);
--color-tag-lime: var(--color-lime);
/* Font */
--font-size-9: 9px;
--line-height-9: 12px;
--letter-spacing-9: 0.14px;
--font-size-very-small: 11px;
--line-height-very-small: 18px;
--letter-spacing-very-small: 0.2px;
--font-size-small: 12px;
--line-height-small: 18px;
--letter-spacing-small: 0px;
--font-size-common: 14px;
--line-height-common: 22px;
--letter-spacing-common: -0.12px;
--font-size-paragraph: 16px;
--line-height-paragraph: 24px;
--letter-spacing-paragraph: -0.2px;
--font-size-title: 36px;
--line-height-title: 40px;
--letter-spacing-title: -0.64px;
--font-weight-title: 900;
--font-size-header1: 28px;
--line-height-header1: 32px;
--letter-spacing-header1: -0.56px;
--font-weight-header1: 900;
--font-size-header2: 22px;
--line-height-header2: 28px;
--letter-spacing-header2: -0.48px;
--font-weight-header2: 900;
--font-size-header3: 18px;
--line-height-header3: 26px;
--letter-spacing-header3: -0.28px;
--font-weight-header3: 900;
--font-size-description: 18px;
--line-height-description: 26px;
--letter-spacing-description: -0.28px;
/* Menu */
--menu-width-common: 224px;
--menu-width-icon: 256px;
--menu-width-value: 288px;
--menu-width-set: 360px;
--menu-width-large: 408px;
--menu-width-add: 480px;
--editor-width: 710px;
}
html.themeDark {
/* Text */
--color-text-primary: hsl(0, 0%, 88%);
--color-text-primary-70: hsla(0, 0%, 88%, 0.75);
--color-text-secondary: hsl(0, 0%, 64%);
--color-text-tertiary: hsl(0, 0%, 36%);
--color-text-inversion: hsl(0, 0%, 9%);
--color-text-primary-inversion: hsl(0, 0%, 12%);
--color-text-secondary-inversion: hsl(0, 0%, 26%);
--color-text-tertiary-inversion: hsl(0, 0%, 64%);
/* Shape */
--color-shape-primary: hsl(0, 0%, 19%);
--color-shape-secondary: hsl(0, 0%, 16%);
--color-shape-tertiary: hsl(0, 0%, 14%);
--color-shape-highlight-dark: hsla(0, 0%, 100%, 0.11);
--color-shape-highlight-medium: hsla(0, 0%, 100%, 0.05);
--color-shape-highlight-light: hsla(0, 0%, 100%, 0.03);
--color-shape-highlight-light-solid: hsl(0, 0%, 12%);
/* Control */
--color-control-accent: hsl(0, 0%, 83%);
--color-control-active: hsl(0, 0%, 45%);
--color-control-inactive: hsl(0, 0%, 25%);
--color-control-bg: hsl(0, 0%, 100%);
/* Background */
--color-bg-primary: hsl(0, 0%, 9%);
--color-bg-primary-90: hsla(0, 0%, 9%, 0.9);
--color-bg-secondary: hsl(0, 0%, 10%);
--color-bg-loader: hsla(0, 0%, 0%, 0.7);
--color-attachment-loader: hsla(0, 0%, 100%, 0.7);
/* Color */
--color-very-light-yellow: hsl(50, 52%, 93%);
--color-light-yellow: hsl(50, 72%, 28%);
--color-yellow: hsl(50, 88%, 54%);
--color-dark-yellow: hsl(50, 72%, 81%);
--color-very-light-orange: hsl(28, 52%, 93%);
--color-light-orange: hsl(28, 74%, 27%);
--color-orange: hsl(28, 88%, 54%);
--color-dark-orange: hsl(28, 72%, 81%);
--color-very-light-red: hsl(4, 52%, 93%);
--color-light-red: hsl(4, 76%, 27%);
--color-red: hsl(4, 88%, 54%);
--color-dark-red: hsl(4, 72%, 81%);
--color-very-light-pink: hsl(332, 52%, 93%);
--color-light-pink: hsl(332, 70%, 28%);
--color-pink: hsl(332, 88%, 54%);
--color-dark-pink: hsl(332, 72%, 81%);
--color-very-light-purple: hsl(276, 52%, 93%);
--color-light-purple: hsl(276, 72%, 28%);
--color-purple: hsl(276, 88%, 54%);
--color-dark-purple: hsl(276, 72%, 81%);
--color-very-light-blue: hsl(224, 52%, 93%);
--color-light-blue: hsl(224, 70%, 30%);
--color-blue: hsl(224, 88%, 54%);
--color-dark-blue: hsl(224, 72%, 81%);
--color-very-light-teal: hsl(172, 52%, 93%);
--color-light-teal: hsl(172, 68%, 28%);
--color-teal: hsl(172, 88%, 54%);
--color-dark-teal: hsl(172, 72%, 81%);
--color-very-light-ice: hsl(198, 52%, 93%);
--color-light-ice: hsl(198, 66%, 29%);
--color-ice: hsl(198, 88%, 54%);
--color-dark-ice: hsl(198, 72%, 81%);
--color-very-light-lime: hsl(96, 52%, 93%);
--color-light-lime: hsl(96, 62%, 28%);
--color-lime: hsl(96, 88%, 54%);
--color-dark-lime: hsl(96, 72%, 81%);
--color-very-light-grey: hsl(0, 0%, 94%);
--color-light-grey: hsl(0, 0%, 28%);
--color-grey: hsl(0, 0%, 52%);
--color-dark-grey: hsl(0, 0%, 84%);
/* Tag */
--color-tag-grey: var(--color-text-secondary);
/* System */
--color-system-accent-125: hsl(220, 87%, 50%);
--color-system-accent-50: hsl(220, 100%, 71%);
--color-system-accent-25: hsl(220, 100%, 80%);
--color-system-highlight: hsla(220, 100%, 61%, 0.15);
--color-system-selection: hsla(220, 100%, 61%, 0.75); /* Previously 0.25 */
--color-system-destructive-50: hsl(14, 59%, 29%);
--color-system-destructive-25: hsl(14, 33%, 17%);
/* Icon */
--color-icon: hsl(56, 7%, 60%);
--color-icon-hover: hsl(0, 0%, 88%);
.tagItem.isMultiSelect .inner {
color: var(--color-text-primary) !important;
}
}
/* --------- UNIVERSAL STYLES --------- */
.blocks
.block.blockText.isChecked
> .wrapContent
> .selectionTarget
> .dropTarget {
color: color-mix(
in hsl,
currentColor 30%,
var(--color-text-primary) 15%
) !important;
}
/* FONT STYLES */
body {
font-family: "Nunito Sans", sans-serif;
}
markupbold {
font-weight: 900;
}
.tagItem.isMultiSelect .inner {
color: var(--color-text-primary) !important;
}
.tagItem {
border: 1px solid !important;
}
markupmention {
color: var(--color-lime);
font-weight: 900;
}
a.markuplink {
color: var(--color-ice);
font-weight: 900;
}
.blocks .block.blockChat .message .bubble .attachments {
padding: 12px 8px 8px 8px;
}
/* Make font size of headings in tables larger */
.row:first-child.isHeader .value {
font-size: 1.2rem;
}
/* Add fun animation to list item checkboxes and task checkboxes */
.blocks .block.blockText .markers .marker.markerCheckbox.active,
.iconObject.isTask .objectCheckbox2,
.markerCheckbox2.hasSvg {
-webkit-animation: rubberBand 0.8s 1;
animation: rubberBand 0.8s 1;
}
@-webkit-keyframes rubberBand {
0% {
-webkit-transform: scaleX(1);
transform: scaleX(1);
}
30% {
-webkit-transform: scale3d(1.25, 0.75, 1);
transform: scale3d(1.25, 0.75, 1);
}
40% {
-webkit-transform: scale3d(0.75, 1.25, 1);
transform: scale3d(0.75, 1.25, 1);
}
50% {
-webkit-transform: scale3d(1.15, 0.85, 1);
transform: scale3d(1.15, 0.85, 1);
}
65% {
-webkit-transform: scale3d(0.95, 1.05, 1);
transform: scale3d(0.95, 1.05, 1);
}
75% {
-webkit-transform: scale3d(1.05, 0.95, 1);
transform: scale3d(1.05, 0.95, 1);
}
to {
-webkit-transform: scaleX(1);
transform: scaleX(1);
}
}
@keyframes rubberBand {
0% {
-webkit-transform: scaleX(1);
transform: scaleX(1);
}
30% {
-webkit-transform: scale3d(1.25, 0.75, 1);
transform: scale3d(1.25, 0.75, 1);
}
40% {
-webkit-transform: scale3d(0.75, 1.25, 1);
transform: scale3d(0.75, 1.25, 1);
}
50% {
-webkit-transform: scale3d(1.15, 0.85, 1);
transform: scale3d(1.15, 0.85, 1);
}
65% {
-webkit-transform: scale3d(0.95, 1.05, 1);
transform: scale3d(0.95, 1.05, 1);
}
75% {
-webkit-transform: scale3d(1.05, 0.95, 1);
transform: scale3d(1.05, 0.95, 1);
}
to {
-webkit-transform: scaleX(1);
transform: scaleX(1);
}
}
.tagItem.isMultiSelect .tagRemove::after {
content: "";
width: 10px;
height: 10px;
position: absolute;
top: 50%;
left: 50%;
margin: -5px 0 0 -5px;
background-color: var(--color-text-primary);
-webkit-mask-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2.44194 1.55806C2.19786 1.31398 1.80214 1.31398 1.55806 1.55806C1.31398 1.80214 1.31398 2.19786 1.55806 2.44194L4.11612 5L1.55806 7.55806C1.31398 7.80214 1.31398 8.19786 1.55806 8.44194C1.80214 8.68602 2.19786 8.68602 2.44194 8.44194L5 5.88388L7.55806 8.44194C7.80214 8.68602 8.19786 8.68602 8.44194 8.44194C8.68602 8.19786 8.68602 7.80214 8.44194 7.55806L5.88388 5L8.44194 2.44194C8.68602 2.19786 8.68602 1.80214 8.44194 1.55806C8.19786 1.31398 7.80214 1.31398 7.55806 1.55806L5 4.11612L2.44194 1.55806Z' fill='black'/%3E%3C/svg%3E");
-webkit-mask-size: contain;
-webkit-mask-repeat: no-repeat;
}






