mirror of
https://github.com/podman-desktop/podman-desktop
synced 2026-04-21 09:37:22 +00:00
In a previous PR #1363 we replaced 6 colors in the default Tailwind palette with our own palette [1]. There are 2 other colors that we didn't override at the time (gray and purple) because we use them a lot and the color values at each level have changed slightly.
This PR:
- Updates the palette to include the last of our official colors, gray and purple.
- Maps all existing use of these two colors to the 'closest color' variant from the new set to minimize color shift in the UI. I wrote a small script to confirm which variants should change - see mapping below. e.g. the old and new purple-200 are close so didn't need to change, but the old purple-300 is closest to the new purple-200.
- Adds all additional colors we're currently using into tailwind.config.cfg. Over time these will need to be moved 'up' into our official palette, or we stop using them and clean up the palette.
- Moves this palette from extending Tailwind's palette to replacing it. This will force us to stick with the defined palette and can't accidentally use other colors.
Purple
300 -> 200
600 -> 500
700 -> 600
800 -> 700
900 -> 800
950 -> 900
Gray
200 -> 300
300 -> 400
400 -> 700
500 -> 900
600 -> 900
700 -> 900
800 -> 900
Major step towards issue #1384.
[1] 66ae813487/gistfile1.txt
Signed-off-by: Tim deBoer <git@tdeboer.ca>
168 lines
3.9 KiB
JavaScript
168 lines
3.9 KiB
JavaScript
/**********************************************************************
|
|
* Copyright (C) 2022-2023 Red Hat, Inc.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
***********************************************************************/
|
|
|
|
module.exports = {
|
|
content: [
|
|
'packages/renderer/index.html',
|
|
'packages/renderer/src/**/*.{svelte,css}',
|
|
],
|
|
theme: {
|
|
extend: {
|
|
transitionProperty: {
|
|
width: 'width',
|
|
},
|
|
},
|
|
colors: {
|
|
'charcoal': {
|
|
50: '#767676',
|
|
100: '#707073',
|
|
200: '#5c5c5c',
|
|
300: '#464649',
|
|
400: '#4a4b4f',
|
|
500: '#36363d',
|
|
600: '#27272a',
|
|
700: '#222222',
|
|
800: '#18181b',
|
|
900: '#0f0f11',
|
|
},
|
|
'gray': {
|
|
50: '#f9fafb',
|
|
100: '#f6f6f6',
|
|
200: '#efefef',
|
|
300: '#e4e4e4',
|
|
400: '#d1d1d1',
|
|
500: '#c8c8c8',
|
|
600: '#b4b4b4',
|
|
700: '#aaabac',
|
|
800: '#9a9a9a',
|
|
900: '#818181',
|
|
},
|
|
'purple': {
|
|
50: '#f7f3ff',
|
|
100: '#efe9fe',
|
|
200: '#e2d6fe',
|
|
300: '#bfa7f6',
|
|
400: '#ad8bfa',
|
|
500: '#8b5cf6',
|
|
600: '#6d48bf',
|
|
700: '#6234b1',
|
|
800: '#4d2d87',
|
|
900: '#37255d',
|
|
},
|
|
'dustypurple': {
|
|
50: '#f2f2fb',
|
|
100: '#e7e8f8',
|
|
200: '#d3d3f2',
|
|
300: '#b9b8e9',
|
|
400: '#a09adf',
|
|
500: '#8f81d3',
|
|
600: '#8772c7',
|
|
700: '#6d57ab',
|
|
800: '#59498a',
|
|
900: '#4a406f',
|
|
},
|
|
'fuschia': {
|
|
50: '#fdf2ff',
|
|
100: '#f9e3ff',
|
|
200: '#f4c6ff',
|
|
300: '#f099ff',
|
|
400: '#e85dff',
|
|
500: '#d721ff',
|
|
600: '#c200ff',
|
|
700: '#a200cf',
|
|
800: '#8600a9',
|
|
900: '#710689',
|
|
},
|
|
'sky': {
|
|
50: '#f2f8fd',
|
|
100: '#e5eff9',
|
|
200: '#c4def3',
|
|
300: '#90c3e9',
|
|
400: '#51a2da',
|
|
500: '#2f88c8',
|
|
600: '#206ca9',
|
|
700: '#1b5789',
|
|
800: '#1a4a72',
|
|
900: '#1b3f5f',
|
|
},
|
|
'green': {
|
|
50: '#f0f9f0',
|
|
100: '#ddefdc',
|
|
200: '#bbdfbb',
|
|
300: '#8ec792',
|
|
400: '#64ad6c',
|
|
500: '#3c8d47',
|
|
600: '#2b7037',
|
|
700: '#225a2d',
|
|
800: '#1d4825',
|
|
900: '#193b20',
|
|
},
|
|
'red': {
|
|
50: '#fff4f1',
|
|
100: '#ffe7e1',
|
|
200: '#ffd1c7',
|
|
300: '#ffb3a1',
|
|
400: '#ff866a',
|
|
500: '#f86847',
|
|
600: '#e5421d',
|
|
700: '#c13414',
|
|
800: '#9f2f15',
|
|
900: '#842c18',
|
|
},
|
|
// The remaining colors below are not part of our palette and are only here
|
|
// to maintain existing code. No new use.
|
|
'slate': {
|
|
400: '#94a3b8',
|
|
800: '#1e293b',
|
|
},
|
|
'zinc': {
|
|
100: '#f4f4f5',
|
|
200: '#e4e4e7',
|
|
300: '#d4d4d8',
|
|
400: '#a1a1aa',
|
|
600: '#52525b',
|
|
700: '#3f3f46',
|
|
800: '#27272a',
|
|
900: '#18181b',
|
|
},
|
|
'neutral': {
|
|
900: '#171717',
|
|
},
|
|
'yellow': {
|
|
500: '#eab308',
|
|
600: '#ca8a04',
|
|
},
|
|
'blue': {
|
|
500: '#3b82f6',
|
|
},
|
|
'indigo': { // website only
|
|
500: '#6366f1',
|
|
600: '#4f46e5',
|
|
},
|
|
'violet': {
|
|
50: '#f5f3ff',
|
|
400: '#a78bfa',
|
|
500: '#8b5cf6',
|
|
600: '#7c3aed',
|
|
700: '#6d28d9',
|
|
800: '#5b21b6',
|
|
},
|
|
},
|
|
},
|
|
plugins: [],
|
|
};
|