generated from argyleink/vite-postcss-preset-env
-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Create brand colors props. (Closes #471) * Update package-lock.json * Export .css file for brand props * Add showcase, code and demo for brand colors props to docsite. * Update brotli bundled size for brand colors props. * Change internal name for `brand` to `brand-colors`. * Change internal name for `brand` to `brand-colors` in `package.json`. * Inline previously client-side generated HTML for brand colors in docsite. * Uh...
- Loading branch information
Showing
9 changed files
with
128 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
console.log( | ||
Object.keys(import('../../src/props.brand-colors.js')) | ||
.map((brand) => [brand.replace(/-/g, ' ').replace('brand ', ''), brand]) | ||
.map( | ||
([brandTitlecase, brand]) => | ||
`<ul class="open-colors count-em color-swatch-list"><h4>${brandTitlecase}</h4><li><button class="color-swatch" style="background-color: var(${brand})" aria-label="${brandTitlecase}"></button></li></ul>` | ||
) | ||
.join('') | ||
) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
'--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', | ||
} |