Feat: Support setting custom css variables through embed API. (#8169)

* Add booker border specific custom variables

* Support configuring cssVars through embed API

* Update apps/web/pages/booking/[uid].tsx

Co-authored-by: sean-brydon <[email protected]>

---------

Co-authored-by: sean-brydon <[email protected]>
This commit is contained in:
Hariom Balharaandsean-brydon authored and GitHub committed 2023-04-13 18:26:31 +00:00
1 parent 17f48614ff
commit 0e22e92cab
11 files changed
+123 -61

No files matched your search

+6 -2
View File
@@ -2,7 +2,7 @@ const plugin = require("tailwindcss/plugin");
const { fontFamily } = require("tailwindcss/defaultTheme");
/** @type {import('tailwindcss').Config} */
const subtleColor = "#E5E7EB";
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
@@ -58,8 +58,9 @@ module.exports = {
borderColor: {
emphasis: "var(--cal-border-emphasis, #9CA3AF)",
default: "var(--cal-border, #D1D5DB)",
subtle: "var(--cal-border-subtle, #E5E7EB)",
subtle: `var(--cal-border-subtle, ${subtleColor})`,
muted: "var(--cal-border-muted, #F3F4F6)",
booker: `var(--cal-border-booker, ${subtleColor})`,
},
textColor: {
emphasis: "var(--cal-text-emphasis, #111827)",
@@ -106,6 +107,9 @@ module.exports = {
boxShadow: {
dropdown: "0px 2px 6px -1px rgba(0, 0, 0, 0.08)",
},
borderWidth: {
"booker-width": "var(--cal-border-booker-width, 1px)",
},
fontFamily: {
cal: ["var(--font-cal)", ...fontFamily.serif],
sans: ["var(--font-inter)", ...fontFamily.sans],