feat(github): enforce built-in theme (#154)

This commit is contained in:
Ryan Cao authored and GitHub committed 2023-08-10 08:59:13 +01:00
1 parent 691e64c77d
commit d2e18c8a4f
3 files changed
+99 -81

No files matched your search

+2 -1
View File
@@ -126,7 +126,7 @@ userstyles:
color: green color: green
readme: readme:
app-link: "https://chess.com" app-link: "https://chess.com"
current-maintainers: [ *coldenate, *isabelroses, *skelebro1 ] current-maintainers: [*coldenate, *isabelroses, *skelebro1]
cinny: cinny:
name: Cinny name: Cinny
category: messaging category: messaging
@@ -171,6 +171,7 @@ userstyles:
category: productivity category: productivity
color: text color: text
readme: readme:
usage: "Switch to a default GitHub light/dark theme for the best experience!"
app-link: "https://github.com" app-link: "https://github.com"
current-maintainers: [*pocco81, *glowingumbreon] current-maintainers: [*pocco81, *glowingumbreon]
past-maintainers: [*andreasgrafen] past-maintainers: [*andreasgrafen]
+2 -1
View File
@@ -36,7 +36,8 @@
<img src="assets/mocha.webp"/> <img src="assets/mocha.webp"/>
</details> </details>
## Usage
Switch to a default GitHub light/dark theme for the best experience!
+95 -79
View File
@@ -152,6 +152,22 @@
} }
} }
html:not([data-light-theme="light"]) body::after, html:not([data-dark-theme="dark"]) body::after {
position: fixed;
top: 0;
right: 0;
padding: 1rem;
margin: 1rem;
font-size: 0.9rem;
font-weight: 600;
border-radius: 0.5rem;
max-width: 40ch;
background-color: var(--color-danger-fg);
color: var(--color-header-bg);
content: "You're using an unsupported GitHub theme! Please switch to the default light/dark theme to get the best experience for the Catppuccin GitHub userstyle.";
z-index: 9999;
}
#coloredButton(@name, @color) { #coloredButton(@name, @color) {
--color-btn-@{name}-text: @base; --color-btn-@{name}-text: @base;
--color-btn-@{name}-bg: @color; --color-btn-@{name}-bg: @color;
@@ -671,24 +687,24 @@
.Button--danger { .Button--danger {
background: var(--color-btn-danger-bg) background: var(--color-btn-danger-bg)
} }
/* Create PR button & New branch button */ /* Create PR button & New branch button */
.iRoQzU, .ifkUYV, .bOZDzN { .iRoQzU, .ifkUYV, .bOZDzN {
background-color: @green; background-color: @green;
color: @base; color: @base;
} }
/* New branch dialog */ /* New branch dialog */
.jenxrv { .jenxrv {
background-color: @mantle; background-color: @mantle;
color: @text; color: @text;
} }
/* Branch drop down */ /* Branch drop down */
.fHiIQb { .fHiIQb {
background-color: @surface0; background-color: @surface0;
} }
/* Compare button & Cancel new branch button */ /* Compare button & Cancel new branch button */
.idPXPh, .idPXPh,
.epAEYw { .epAEYw {
@@ -774,7 +790,7 @@
.col-md-8 { .col-md-8 {
background-color: @base; background-color: @base;
} }
.user-mention, .team-mention { .user-mention, .team-mention {
color: @accent-color; color: @accent-color;
} }
@@ -877,7 +893,7 @@
background-image: none; background-image: none;
background-color: @accent-color; background-color: @accent-color;
} }
/* Keyboard hint */ /* Keyboard hint */
.bdgUpN, .bdgUpN,
.hZMmEi .TextInput-icon, .hZMmEi .TextInput-action { .hZMmEi .TextInput-icon, .hZMmEi .TextInput-action {
@@ -885,19 +901,19 @@
background-color: @mantle; background-color: @mantle;
border-color: @surface0; border-color: @surface0;
} }
/* Merge icon */ /* Merge icon */
.fMJQEf { .fMJQEf {
color: @text; color: @text;
background-color: @overlay0; background-color: @overlay0;
} }
/* Branch indicator */ /* Branch indicator */
.iVNDSi { .iVNDSi {
color: @accent-color; color: @accent-color;
background-color: fade(@accent-color, 10); background-color: fade(@accent-color, 10);
} }
/* File view */ /* File view */
.hwnsNO { .hwnsNO {
color: @text; color: @text;
@@ -905,34 +921,34 @@
background: @mantle; background: @mantle;
} }
} }
.dXveNa[data-no-visuals="true"] { .dXveNa[data-no-visuals="true"] {
color: @subtext0; color: @subtext0;
} }
.dXveNa, .dXveNa,
.kbjJSF { .kbjJSF {
background-color: @surface0; background-color: @surface0;
border-color: @surface1; border-color: @surface1;
} }
.gUecKw, .gUecKw,
.lcpiaz, .lcpiaz,
.jolsUx, .jolsUx,
.fsSggy { .fsSggy {
background-color: @mantle; background-color: @mantle;
} }
.Cxvmo, .Cxvmo,
.dhYcqs { .dhYcqs {
color: @red; color: @red;
} }
.byJIBD, .byJIBD,
.dMLfZp[data-size="small"][data-no-visuals="true"] svg { .dMLfZp[data-size="small"][data-no-visuals="true"] svg {
color: @green; color: @green;
} }
.lmmHGT:not(:first-of-type), .lmmHGT:not(:first-of-type),
.fOEJrA, .fOEJrA,
.fnFdxN, .fnFdxN,
@@ -951,18 +967,18 @@
.dTxwit { .dTxwit {
color: @subtext0; color: @subtext0;
} }
.gssqTz { .gssqTz {
color: @text !important; color: @text !important;
} }
.bPgnBp, .bPgnBp,
.jMyfUO, .jMyfUO,
.hfRvxg, .hfRvxg,
.cBrzIN { .cBrzIN {
color: @text; color: @text;
} }
.eLaeIt:hover:not([disabled]), .eLaeIt:hover:not([disabled]),
.dMLfZp[data-size="small"][data-no-visuals="true"]:hover:not([disabled]), .dMLfZp[data-size="small"][data-no-visuals="true"]:hover:not([disabled]),
.bqDKPR[data-component="IconButton"][data-no-visuals], .bqDKPR[data-component="IconButton"][data-no-visuals],
@@ -970,11 +986,11 @@
.icOaJE:hover:not([disabled]) { .icOaJE:hover:not([disabled]) {
background-color: @surface0; background-color: @surface0;
} }
.icOaJE[aria-pressed="true"] { .icOaJE[aria-pressed="true"] {
background-color: @surface0; background-color: @surface0;
} }
.cZRqXf { .cZRqXf {
background-color: @surface0; background-color: @surface0;
&:active:not([disabled]), &:active:not([disabled]),
@@ -986,7 +1002,7 @@
background-color: @surface1; background-color: @surface1;
} }
} }
.kdEavw, .kdEavw,
.ddNLNa, .ddNLNa,
.jepClM, .jepClM,
@@ -998,16 +1014,16 @@
background-color: @surface1 background-color: @surface1
} }
} }
.juEfKr { .juEfKr {
border-color: @surface2; border-color: @surface2;
} }
.eUqMHM, .eUqMHM,
.hSXtjz { .hSXtjz {
background-color: @base; background-color: @base;
} }
.gtXnmh, .gtXnmh,
.ukUXs, .ukUXs,
.giEfVQ, .giEfVQ,
@@ -1016,7 +1032,7 @@
.kTUxDY { .kTUxDY {
background-color: @mantle; background-color: @mantle;
} }
.hLwWNO .PRIVATE_TreeView-item-container, .hLwWNO .PRIVATE_TreeView-item-container,
.hYaoHV, .hYaoHV,
.rLhXz, .rLhXz,
@@ -1025,12 +1041,12 @@
.dEmXPQ { .dEmXPQ {
color: @text; color: @text;
} }
.bJBoUI, .bJBoUI,
.iJtJJh { .iJtJJh {
color: @accent-color; color: @accent-color;
} }
.lhyFLG { .lhyFLG {
background-color: @mantle; background-color: @mantle;
border-top: 1px solid @surface1; border-top: 1px solid @surface1;
@@ -1038,23 +1054,23 @@
border-bottom-color: @surface1; border-bottom-color: @surface1;
border-left-color: @surface1; border-left-color: @surface1;
} }
.hUWqlv, .hUWqlv,
.bJcMWH { .bJcMWH {
color: @blue; color: @blue;
} }
.gxGEao { .gxGEao {
border-bottom-color: @surface0; border-bottom-color: @surface0;
} }
.hLwWNO .PRIVATE_TreeView-item[aria-current="true"] > .PRIVATE_TreeView-item-container { .hLwWNO .PRIVATE_TreeView-item[aria-current="true"] > .PRIVATE_TreeView-item-container {
background-color: @surface0; background-color: @surface0;
&::after { &::after {
background-color: @accent-color; background-color: @accent-color;
} }
} }
.dfAUyE, .dfAUyE,
.gKuCoB, .gKuCoB,
.bFrOJy { .bFrOJy {
@@ -1063,7 +1079,7 @@
color: @text color: @text
} }
} }
.cuqBaK, .cuqBaK,
.fCAAcl, .fCAAcl,
.dAXkSP { .dAXkSP {
@@ -1073,13 +1089,13 @@
background: @surface0; background: @surface0;
} }
} }
@media (hover: hover) and (pointer: fine) { @media (hover: hover) and (pointer: fine) {
.rLhXz:hover:not([aria-disabled]) { .rLhXz:hover:not([aria-disabled]) {
background-color: @surface0; background-color: @surface0;
} }
} }
/* Projects */ /* Projects */
.ksbilD, .ksbilD,
.cuaLcW, .cuaLcW,
@@ -1096,7 +1112,7 @@
.AbCTW { .AbCTW {
background-color: @mantle; background-color: @mantle;
} }
.jEgFtJ, .jEgFtJ,
.lixtXZ:hover, .lixtXZ:hover,
.eNIoFu, .eNIoFu,
@@ -1106,23 +1122,23 @@
.gIOnJa { .gIOnJa {
background-color: @surface0; background-color: @surface0;
} }
.jBCpbB { .jBCpbB {
color: @text; color: @text;
background-color: @surface0; background-color: @surface0;
} }
.kzrUhn.selected { .kzrUhn.selected {
background-color: @base; background-color: @base;
border-color: @surface0; border-color: @surface0;
color: @text; color: @text;
} }
.esIQoN, .esIQoN,
.kbjJSF:disabled { .kbjJSF:disabled {
color: @subtext1; color: @subtext1;
} }
.eJTCnd, .eJTCnd,
.eTthoV { .eTthoV {
border-color: @surface0; border-color: @surface0;
@@ -1137,36 +1153,36 @@
color: @text; color: @text;
} }
} }
.ikTPpF { .ikTPpF {
box-shadow: @base 0px 3px 6px; box-shadow: @base 0px 3px 6px;
border-color: @surface0; border-color: @surface0;
} }
.cvveTk, .cvveTk,
.dwoION { .dwoION {
background-color: @base; background-color: @base;
} }
.FKGWN { .FKGWN {
background-color: @base; background-color: @base;
border-color: @surface0; border-color: @surface0;
} }
.jEgFtJ::after { .jEgFtJ::after {
background-color: @accent-color; background-color: @accent-color;
} }
.khCtfm:hover { .khCtfm:hover {
background-color: @surface0; background-color: @surface0;
} }
.khCtfm, .khCtfm,
.khCtfm[data-component="leadingVisual"], .khCtfm[data-component="leadingVisual"],
.Tnbrt[data-component="IconButton"][data-no-visuals] { .Tnbrt[data-component="IconButton"][data-no-visuals] {
color: @subtext0; color: @subtext0;
} }
.Tnbrt { .Tnbrt {
&:active, &[aria-expanded="true"] { &:active, &[aria-expanded="true"] {
background-color: @surface2; background-color: @surface2;
@@ -1178,23 +1194,23 @@
.imsxCM { .imsxCM {
color: @text; color: @text;
.is-selected::after { .is-selected::after {
background-color: @accent-color; background-color: @accent-color;
} }
} }
.pxYjU { .pxYjU {
background-color: @mantle; background-color: @mantle;
color: @text; color: @text;
border-color: @surface0; border-color: @surface0;
} }
.ilLRrZ { .ilLRrZ {
color: @text; color: @text;
background-color: @surface1; background-color: @surface1;
} }
.cnIHxk { .cnIHxk {
background-color: @surface0; background-color: @surface0;
color: @text; color: @text;
@@ -1203,11 +1219,11 @@
color: @crust; color: @crust;
} }
} }
.ghFpol { .ghFpol {
background-color: @base; background-color: @base;
} }
.hVmCdl, .hVmCdl,
.fqKZNC, .fqKZNC,
.fZFWUy, .fZFWUy,
@@ -1217,12 +1233,12 @@
.ekNmOn { .ekNmOn {
color: @text; color: @text;
} }
.lixtXZ[data-component="IconButton"][data-no-visuals], .lixtXZ[data-component="IconButton"][data-no-visuals],
.klUZzf:not(:first-of-type) { .klUZzf:not(:first-of-type) {
color: @subtext0; color: @subtext0;
} }
.jvpWzR { .jvpWzR {
&:hover { &:hover {
background-color: @surface1; background-color: @surface1;
@@ -1231,20 +1247,20 @@
color: @subtext0; color: @subtext0;
} }
} }
.fZFWUy, .fZFWUy,
.fzjwje { .fzjwje {
background-color: @base; background-color: @base;
} }
.cEYXBH { .cEYXBH {
background-color: @accent-color; background-color: @accent-color;
} }
.joxhcl, .hXyJIp, .fMkBhb > .segmentedControl-content { .joxhcl, .hXyJIp, .fMkBhb > .segmentedControl-content {
background-color: @mantle; background-color: @mantle;
} }
.dVFmxu, .dVFmxu,
.gbKtit, .gbKtit,
.lnKxja, .lnKxja,
@@ -1258,7 +1274,7 @@
border-color: @surface0; border-color: @surface0;
} }
} }
.hJMtSk { .hJMtSk {
color: @crust; color: @crust;
background-color: @green; background-color: @green;
@@ -1267,7 +1283,7 @@
background-color: @overlay0; background-color: @overlay0;
} }
} }
.iDiUTR { .iDiUTR {
color: @text; color: @text;
background-color: @base; background-color: @base;
@@ -1276,12 +1292,12 @@
border-color: @surface1; border-color: @surface1;
} }
} }
.eQfJKc, .eQfJKc,
.UHWYv { .UHWYv {
color: @red; color: @red;
} }
.jVIqnb { .jVIqnb {
color: @red; color: @red;
background-color: @surface0; background-color: @surface0;
@@ -1290,15 +1306,15 @@
background-color: @red; background-color: @red;
} }
} }
.UHWYv:hover { .UHWYv:hover {
background-color: fade(@red, 20) background-color: fade(@red, 20)
} }
.lmmHGT:hover { .lmmHGT:hover {
background-color: @surface0; background-color: @surface0;
} }
/* Project table view */ /* Project table view */
.hYdbWk, .hYdbWk,
.gkeKEr, .gkeKEr,
@@ -1315,13 +1331,13 @@
.dSHKOE { .dSHKOE {
background-color: @base; background-color: @base;
} }
.gkWKRr { .gkWKRr {
border-top-color: @surface0; border-top-color: @surface0;
border-right-color: @surface0; border-right-color: @surface0;
border-left-color: @surface0; border-left-color: @surface0;
} }
.hPQRKh { .hPQRKh {
background-color: @surface0; background-color: @surface0;
&:hover:not([disabled]) { &:hover:not([disabled]) {
@@ -1331,7 +1347,7 @@
color: @subtext0; color: @subtext0;
} }
} }
.kfwhFa { .kfwhFa {
&:hover:not([disabled]) { &:hover:not([disabled]) {
background-color: @surface0; background-color: @surface0;
@@ -1340,17 +1356,17 @@
color: @subtext0; color: @subtext0;
} }
} }
.jykkjb { .jykkjb {
background-color: @base; background-color: @base;
box-shadow: @crust 0px -2px 0px inset, @crust 0px 1px 0px inset; box-shadow: @crust 0px -2px 0px inset, @crust 0px 1px 0px inset;
} }
.jhjELj, .jhjELj,
.ixTUPS { .ixTUPS {
border-color: @surface1; border-color: @surface1;
} }
.gmscZx, .gmscZx,
.fUaEiu { .fUaEiu {
&:hover:not([disabled]) { &:hover:not([disabled]) {
@@ -1365,15 +1381,15 @@
color: @subtext0; color: @subtext0;
} }
} }
.cBssZb { .cBssZb {
color: @text; color: @text;
} }
.jhjELj::before { .jhjELj::before {
border-color: transparent transparent @surface1; border-color: transparent transparent @surface1;
} }
.fHpqaf, .fHpqaf,
.bfQVnA, .bfQVnA,
.iGxiw, .iGxiw,
@@ -1382,32 +1398,32 @@
.iQkwAM { .iQkwAM {
color: @subtext0; color: @subtext0;
} }
smt { smt {
background-color: @base; background-color: @base;
&:hover { &:hover {
background-color: @surface0; background-color: @surface0;
} }
} }
.dtTTcd { .dtTTcd {
background-color: @base; background-color: @base;
&.hoverable:hover { &.hoverable:hover {
background-color: @surface0; background-color: @surface0;
} }
} }
.pQcjM { .pQcjM {
border-color: @surface1; border-color: @surface1;
&.hoverable:hover { &.hoverable:hover {
background-color: @surface0; background-color: @surface0;
} }
} }
.eTSXcP { .eTSXcP {
background-color: @red; background-color: @red;
} }
.iGxiw { .iGxiw {
border-bottom-color: @surface1; border-bottom-color: @surface1;
} }