Payments B2C GDS
Extended Tailwind CSS with GDS styles, colours and reusable classes.
Install
Install payments-b2c-gds package from npm.
pnpm add @ticketmaster/payments-b2c-gds
How to use
import "@ticketmaster/payments-b2c-gds"
Update tailwind.config.js
/** @type {import('tailwindcss').Config} */
import { defaultTheme } from '@ticketmaster/payments-b2c-gds/theme'
module.exports = {
content: ['./src/**/*.{js,ts,jsx,tsx}'],
theme: defaultTheme,
plugins: []
}
Use gds custom styles
import { defaultTheme } "@ticketmaster/payments-b2c-gds/theme"
const customBlue600 = defaultTheme.extend.colors.blue[600]
Make sure Tailwind is installed in your project.