Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add social media brand colors pack (Closes #471) #520

Merged
merged 9 commits into from
Oct 8, 2024
6 changes: 6 additions & 0 deletions build/props.js
Original file line number Diff line number Diff line change
@@ -17,6 +17,7 @@ import SVG from '../src/props.svg.js'
import Zindex from '../src/props.zindex.js'
import MaskEdges from '../src/props.masks.edges.js'
import MaskCornerCuts from '../src/props.masks.corner-cuts.js'
import Brand from '../src/props.brand.js'

import {buildPropsStylesheet} from './to-stylesheet.js'
import {toTokens} from './to-tokens.js'
@@ -148,6 +149,11 @@ buildPropsStylesheet({
{selector, prefix}
)

buildPropsStylesheet(
{filename: pfx + 'props.brand.css', props: Brand},
{selector, prefix}
)

// gen index.css
const entry = fs.createWriteStream(`../src/${pfx}index.css`)
entry.write(`@import 'props.media.css';
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -44,6 +44,7 @@
"./src/zindex": "./src/props.zindex.js",
"./src/masks.edges": "./src/props.masks.edges.js",
"./src/masks.corner-cuts": "./src/props.masks.corner-cuts.js",
"./src/brand": "./src/props.brand.js",
aspizu marked this conversation as resolved.
Show resolved Hide resolved
"./style": "./open-props.min.css",
"./postcss/style": "./src/index.css",
"./normalize": "./normalize.min.css",
@@ -310,7 +311,8 @@
"shadow:colors:camo": "postcss src/shadow.props.camo.css -o camo.shadow.min.css",
"shadow:colors:camo-hsl": "postcss src/shadow.props.camo-hsl.css -o camo-hsl.shadow.min.css",
"shadow:colors:jungle": "postcss src/shadow.props.jungle.css -o jungle.shadow.min.css",
"shadow:colors:jungle-hsl": "postcss src/shadow.props.jungle-hsl.css -o jungle-hsl.shadow.min.css"
"shadow:colors:jungle-hsl": "postcss src/shadow.props.jungle-hsl.css -o jungle-hsl.shadow.min.css",
"lib:brand": "postcss src/props.brand.css -o brand.min.css"
},
"devDependencies": {
"ava": "^3.15.0",
28 changes: 28 additions & 0 deletions src/props.brand.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
:where(html) {
--brand-facebook: #0866FF;
--brand-youtube: #FF0000;
--brand-twitter: #469CF0;
--brand-whatsapp: #25D366;
--brand-instagram-yellow: #F8D648;
--brand-instagram-red: #E93365;
--brand-instagram-magenta: #D32DBF;
--brand-instagram-blue: #611EF5;
--brand-snapchat: #FFFC00;
--brand-google-blue: #4285F4;
--brand-google-red: #DB4437;
--brand-google-yellow: #F4B400;
--brand-google-green: #0F9D58;
--brand-tiktok-razzmatazz: #FE2C55;
--brand-tiktok-splash: #25F4EE;
--brand-microsoft-red: #F25022;
--brand-microsoft-green: #7FBA00;
--brand-microsoft-blue: #00A4EF;
--brand-microsoft-yellow: #FFB900;
--brand-pinterest: #E60023;
--brand-spotify: #1ED760;
--brand-discord: #5865F2;
--brand-telegram: #2AABEE;
--brand-reddit: #FF4500;
--brand-amazon: #232F3E;
--brand-twitch: #9146FF;
}
44 changes: 44 additions & 0 deletions src/props.brand.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
export default {
// source: https://about.meta.com/brand/resources/facebook/logo/
'--brand-facebook': '#0866FF',
// source: https://www.youtube.com/intl/ALL_in/howyoutubeworks/resources/brand-resources/#logos-icons-and-colors
'--brand-youtube': '#FF0000',
// source: https://about.twitter.com/content/dam/about-twitter/en/brand-toolkit/downloads/twitter-external-brand-guidelines-01272021.pdf
'--brand-twitter': '#469CF0',
// source: https://about.meta.com/brand/resources/whatsapp/whatsapp-brand/
'--brand-whatsapp': '#25D366',
// source: https://about.meta.com/brand/resources/instagram/instagram-brand/
'--brand-instagram-yellow': '#F8D648',
'--brand-instagram-red': '#E93365',
'--brand-instagram-magenta': '#D32DBF',
'--brand-instagram-blue': '#611EF5',
// source: https://snap.com/en-US/brand-guidelines
'--brand-snapchat': '#FFFC00',
// source: https://usbrandcolors.com/google-colors/
'--brand-google-blue': '#4285F4',
'--brand-google-red': '#DB4437',
'--brand-google-yellow': '#F4B400',
'--brand-google-green': '#0F9D58',
// source: https://tiktokbrandbook.com/d/HhXfjVK1Poj9/brand-guidelines#/basics/color/core-palette
'--brand-tiktok-razzmatazz': '#FE2C55',
'--brand-tiktok-splash': '#25F4EE',
// source: https://cdn-dynmedia-1.microsoft.com/is/content/microsoftcorp/microsoft/mscle/documents/presentations/CELA_ThirdPartyLogoGuidelines_June2021.pdf
'--brand-microsoft-red': '#F25022',
'--brand-microsoft-green': '#7FBA00',
'--brand-microsoft-blue': '#00A4EF',
'--brand-microsoft-yellow': '#FFB900',
// source: https://usbrandcolors.com/pinterest-colors/
'--brand-pinterest': '#E60023',
// source: https://developer.spotify.com/documentation/design#using-our-colors
'--brand-spotify': '#1ED760',
// source: https://discord.com/branding
aspizu marked this conversation as resolved.
Show resolved Hide resolved
'--brand-discord': '#5865F2',
// source: https://telegram.org/tour/screenshots
'--brand-telegram': '#2AABEE',
// source: https://reddit.lingoapp.com/s/Color-R7y72J/?v=22
'--brand-reddit': '#FF4500',
// source: none
'--brand-amazon': '#232F3E',
// source: https://brand.twitch.com/
'--brand-twitch': '#9146FF',
}