Skip to content

Commit

Permalink
Chore: update mobile font size
Browse files Browse the repository at this point in the history
  • Loading branch information
avivash committed Mar 27, 2024
1 parent 50563a6 commit e2e1b81
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 57 deletions.
4 changes: 2 additions & 2 deletions src/css/stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ pre[class*="language-"] {
color: #ccc;
background: 0 0;
font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
@apply text-xs sm:text-body-xs !important;
@apply text-body-2xs sm:text-body-xs !important;
text-align: left;
white-space: pre;
word-spacing: normal;
Expand Down Expand Up @@ -334,7 +334,7 @@ pre[class*="language-"] {

.kg-code-card,
.language-sh {
@apply text-xs sm:text-body-xs !important;
@apply text-body-2xs sm:text-body-xs !important;
}

/**
Expand Down
128 changes: 73 additions & 55 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,70 +10,88 @@ module.exports = {

extend: {
animation: {
rotateAnimation: 'rotateAnimation 30s linear infinite',
},
rotateAnimation: "rotateAnimation 30s linear infinite",
},
backgroundImage: {
"purple-fade":
"linear-gradient(360deg, rgba(100, 70, 250, 0) 10.03%, rgba(100, 70, 250, 0.04) 32.78%, rgba(100, 70, 250, 0.08) 51.82%, rgba(100, 70, 250, 0.12) 70.86%, rgba(100, 70, 250, 0.16) 84.79%, rgba(100, 70, 250, 0.2) 99.18%);",
},
colors: {
newneutral: {
"0": "#fcfcfd",
"100": "#eeeef5",
"200": "#c8c8d4",
"300": "#a3a3b3",
"400": "#808094",
"500": "#5e5f76",
"600": "#3e3f59",
"700": "#1f223d",
"800": "#17172b"
0: "#fcfcfd",
100: "#eeeef5",
200: "#c8c8d4",
300: "#a3a3b3",
400: "#808094",
500: "#5e5f76",
600: "#3e3f59",
700: "#1f223d",
800: "#17172b",
},
pink: {
"100": "#ffdbe2",
"200": "#ffadb8",
"300": "#ff8697",
"400": "#fd5375",
"500": "#fa2e55",
"600": "#ec1345"
100: "#ffdbe2",
200: "#ffadb8",
300: "#ff8697",
400: "#fd5375",
500: "#fa2e55",
600: "#ec1345",
},
purple: {
"100": "#e0deff",
"200": "#c0baff",
"300": "#a195ff",
"400": "#836fff",
"500": "#6446fa",
"600": "#523ee5"
100: "#e0deff",
200: "#c0baff",
300: "#a195ff",
400: "#836fff",
500: "#6446fa",
600: "#523ee5",
},
yellow: {
"100": "#fff0ad",
"200": "#f9dd90",
"300": "#f2ca74",
"400": "#eab757"
100: "#fff0ad",
200: "#f9dd90",
300: "#f2ca74",
400: "#eab757",
},
red: {
"100": "#ffbdc8",
"200": "#ff9c9f",
"300": "#fd7977",
"400": "#f65555"
100: "#ffbdc8",
200: "#ff9c9f",
300: "#fd7977",
400: "#f65555",
},
green: {
"100": "#a1e2c1",
"200": "#82d1a6",
"300": "#61c18c",
"400": "#3bb073"
},
100: "#a1e2c1",
200: "#82d1a6",
300: "#61c18c",
400: "#3bb073",
},
},
fontFamily: {
display: ["PPFragment"],
sans: ["UncutSans"],
},
fontSize: {
"heading-2xl": ["3.052rem", { lineHeight: "120%", letterSpacing: "-0.01em" }],
"heading-xl": ["2.441rem", { lineHeight: "120%", letterSpacing: "-0.01em" }],
"heading-lg": ["1.953rem", { lineHeight: "120%", letterSpacing: "-0.01em" }],
"heading-base": ["1.563rem", { lineHeight: "120%", letterSpacing: "-0.01em" }],
"heading-sm": ["1.5rem", { lineHeight: "120%", letterSpacing: "-0.01em" }],
"heading-xs": ["1rem", { lineHeight: "120%", letterSpacing: "-0.01em" }],
"heading-2xl": [
"3.052rem",
{ lineHeight: "120%", letterSpacing: "-0.01em" },
],
"heading-xl": [
"2.441rem",
{ lineHeight: "120%", letterSpacing: "-0.01em" },
],
"heading-lg": [
"1.953rem",
{ lineHeight: "120%", letterSpacing: "-0.01em" },
],
"heading-base": [
"1.563rem",
{ lineHeight: "120%", letterSpacing: "-0.01em" },
],
"heading-sm": [
"1.5rem",
{ lineHeight: "120%", letterSpacing: "-0.01em" },
],
"heading-xs": [
"1rem",
{ lineHeight: "120%", letterSpacing: "-0.01em" },
],
"body-3xl": ["1.602rem", { lineHeight: "130%" }],
"body-2xl": ["1.424rem", { lineHeight: "130%" }],
"body-xl": ["1.25rem", { lineHeight: "130%" }],
Expand All @@ -86,33 +104,33 @@ module.exports = {
"button-lg": ["1.1rem", { lineHeight: "100%" }],
"button-base": ["1rem", { lineHeight: "100%" }],
"button-sm": [".889rem", { lineHeight: "100%" }],
"button-xs": ["0.79rem", { lineHeight: "100%" }]
"button-xs": ["0.79rem", { lineHeight: "100%" }],
},
keyframes: {
rotateAnimation: {
'0%': { transform: 'rotate(0deg)' },
'100%': { transform: 'rotate(360deg)' }
"0%": { transform: "rotate(0deg)" },
"100%": { transform: "rotate(360deg)" },
},
},
},
zIndex: {
max: "1000",
},
borderWidth: {
DEFAULT: '1.4px',
DEFAULT: "1.4px",
},
"borderRadius": {
"none": "0",
"xs": "0.5rem",
"sm": "0.7rem"
borderRadius: {
none: "0",
xs: "0.5rem",
sm: "0.7rem",
},
screens: {
'xl': '1352px',
'xlpadded': '1422px',
xl: "1352px",
xlpadded: "1422px",
},
typography: (theme) => ({
DEFAULT: {
css: {
color: theme('colors.newneutral.600'),
color: theme("colors.newneutral.600"),
},
},
}),
Expand All @@ -127,6 +145,6 @@ module.exports = {
addBase({ "@font-face": fontFace });
});
}),
require('@tailwindcss/typography'),
require("@tailwindcss/typography"),
],
};

0 comments on commit e2e1b81

Please sign in to comment.