trepur_components 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/main.js +32 -0
- package/.storybook/preview.js +9 -0
- package/README.md +70 -0
- package/babel.config.json +18 -0
- package/craco.config.js +10 -0
- package/dist/App.css +42 -0
- package/dist/App.js +24 -0
- package/dist/Components/Breadcrumbs/Breadcrumbs.js +32 -0
- package/dist/Components/Breadcrumbs/Breadcrumbs.stories.js +164 -0
- package/dist/Components/Breadcrumbs/README.md +1 -0
- package/dist/Components/BreadcrumbsBordered/Breadcrumbs.js +49 -0
- package/dist/Components/BreadcrumbsBordered/Breadcrumbs.stories.js +164 -0
- package/dist/Components/BreadcrumbsBordered/README.md +1 -0
- package/dist/Components/Button/Button.js +35 -0
- package/dist/Components/Button/Button.stories.js +185 -0
- package/dist/Components/Button/README.md +1 -0
- package/dist/Components/ButtonSlide/ButtonSlide.js +37 -0
- package/dist/Components/ButtonSlide/ButtonSlide.stories.js +185 -0
- package/dist/Components/ButtonSlide/README.md +1 -0
- package/dist/Components/ButtonSlide/Styles.css +25 -0
- package/dist/Components/Card/Card.js +83 -0
- package/dist/Components/Card/Card.stories.js +204 -0
- package/dist/Components/Card/README.md +1 -0
- package/dist/Components/CardImageLink/CardImageLink.js +36 -0
- package/dist/Components/CardImageLink/CardImageLink.stories.js +89 -0
- package/dist/Components/CardImageLink/README.md +0 -0
- package/dist/Components/CardImageLinkList/CardImageLinkList.js +35 -0
- package/dist/Components/CardImageLinkList/CardImageLinkList.stories.js +63 -0
- package/dist/Components/CardImageLinkList/README.md +0 -0
- package/dist/Components/CardList/CardList.js +36 -0
- package/dist/Components/CardList/CardList.stories.js +204 -0
- package/dist/Components/CardList/README.md +1 -0
- package/dist/Components/Icon/Icon.js +45 -0
- package/dist/Components/Icon/Icon.stories.js +73 -0
- package/dist/Components/Icon/README.md +1 -0
- package/dist/Components/Jumbotron/Jumbotron.js +43 -0
- package/dist/Components/Jumbotron/Jumbotron.stories.js +81 -0
- package/dist/Components/Jumbotron/README.md +0 -0
- package/dist/Components/Nav.js +170 -0
- package/dist/Components/Profile.js +41 -0
- package/dist/Components/Search.js +43 -0
- package/dist/Components/SignedInLinks.js +27 -0
- package/dist/Components/SignedOutLinks.js +22 -0
- package/dist/index.css +67 -0
- package/dist/index.js +19 -0
- package/package.json +71 -0
- package/public/Breadcrumbs/Breadcrumbs.stories.js +144 -0
- package/public/Logo.png +0 -0
- package/public/index.html +10 -0
- package/public/manifest.json +25 -0
- package/public/robots.txt +3 -0
- package/public/user.jpeg +0 -0
- package/src/App.css +42 -0
- package/src/App.js +23 -0
- package/src/Components/Breadcrumbs/Breadcrumbs.js +27 -0
- package/src/Components/Breadcrumbs/Breadcrumbs.stories.js +158 -0
- package/src/Components/Breadcrumbs/README.md +1 -0
- package/src/Components/BreadcrumbsBordered/Breadcrumbs.js +35 -0
- package/src/Components/BreadcrumbsBordered/Breadcrumbs.stories.js +159 -0
- package/src/Components/BreadcrumbsBordered/README.md +1 -0
- package/src/Components/Button/Button.js +26 -0
- package/src/Components/Button/Button.stories.js +144 -0
- package/src/Components/Button/README.md +1 -0
- package/src/Components/ButtonSlide/ButtonSlide.js +26 -0
- package/src/Components/ButtonSlide/ButtonSlide.stories.js +144 -0
- package/src/Components/ButtonSlide/README.md +1 -0
- package/src/Components/ButtonSlide/Styles.css +25 -0
- package/src/Components/Card/Card.js +67 -0
- package/src/Components/Card/Card.stories.js +190 -0
- package/src/Components/Card/README.md +1 -0
- package/src/Components/CardImageLink/CardImageLink.js +22 -0
- package/src/Components/CardImageLink/CardImageLink.stories.js +73 -0
- package/src/Components/CardImageLink/README.md +0 -0
- package/src/Components/CardImageLinkList/CardImageLinkList.js +24 -0
- package/src/Components/CardImageLinkList/CardImageLinkList.stories.js +50 -0
- package/src/Components/CardImageLinkList/README.md +0 -0
- package/src/Components/CardList/CardList.js +29 -0
- package/src/Components/CardList/CardList.stories.js +201 -0
- package/src/Components/CardList/README.md +1 -0
- package/src/Components/Icon/Icon.js +28 -0
- package/src/Components/Icon/Icon.stories.js +49 -0
- package/src/Components/Icon/README.md +1 -0
- package/src/Components/Jumbotron/Jumbotron.js +31 -0
- package/src/Components/Jumbotron/Jumbotron.stories.js +66 -0
- package/src/Components/Jumbotron/README.md +0 -0
- package/src/Components/Nav.js +109 -0
- package/src/Components/Profile.js +25 -0
- package/src/Components/Search.js +26 -0
- package/src/Components/SignedInLinks.js +14 -0
- package/src/Components/SignedOutLinks.js +11 -0
- package/src/index.css +67 -0
- package/src/index.js +4 -0
- package/tailwind.config.js +69 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import Button from "../Button/Button"
|
|
2
|
+
|
|
3
|
+
const Jumbotron = ({
|
|
4
|
+
image,
|
|
5
|
+
altText,
|
|
6
|
+
text,
|
|
7
|
+
ctaText,
|
|
8
|
+
ctaText2,
|
|
9
|
+
ctaLink,
|
|
10
|
+
ctaLink2,
|
|
11
|
+
}) => {
|
|
12
|
+
return (
|
|
13
|
+
<div className='w-screen text-center'>
|
|
14
|
+
<img src={image} alt={altText}/>
|
|
15
|
+
<div className='absolute top-10 lg:top-20 w-full'>
|
|
16
|
+
<h1 className='text-white text-4xl'>{text}</h1>
|
|
17
|
+
<div className='pt-2 lg:pt-8 text-white'>
|
|
18
|
+
{ctaText &&
|
|
19
|
+
<Button className='mx-2' ctaText={ctaText}></Button>
|
|
20
|
+
}
|
|
21
|
+
{ctaText2 &&
|
|
22
|
+
<Button className='mx-2' ctaText={ctaText2}></Button>
|
|
23
|
+
}
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export default Jumbotron
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import Readme from './README.md'
|
|
3
|
+
import Jumbotron from './Jumbotron'
|
|
4
|
+
import '../../index.css';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: 'Components/Jumbotron',
|
|
8
|
+
decorators: [(story) => <div className={`p-4`}>{story()}</div>],
|
|
9
|
+
parameters: {
|
|
10
|
+
readme: {
|
|
11
|
+
sidebar: Readme,
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const _Jumbotron = (args) => {
|
|
17
|
+
return (
|
|
18
|
+
<Jumbotron
|
|
19
|
+
altText='image'
|
|
20
|
+
image='https://picsum.photos/1500/400'
|
|
21
|
+
></Jumbotron>
|
|
22
|
+
)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const JumbotronWithOneBtn = (args) => {
|
|
26
|
+
return (
|
|
27
|
+
<Jumbotron
|
|
28
|
+
altText='image'
|
|
29
|
+
image='https://picsum.photos/1500/400'
|
|
30
|
+
ctaText='This is a button'
|
|
31
|
+
></Jumbotron>
|
|
32
|
+
)
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export const JumbotronWithTwoBtns = (args) => {
|
|
36
|
+
return (
|
|
37
|
+
<Jumbotron
|
|
38
|
+
altText='image'
|
|
39
|
+
image='https://picsum.photos/1500/400'
|
|
40
|
+
ctaText='This is a button'
|
|
41
|
+
ctaText2='This is another button'
|
|
42
|
+
></Jumbotron>
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export const JumbotronWithCenterText = (args) => {
|
|
47
|
+
return (
|
|
48
|
+
<Jumbotron
|
|
49
|
+
altText='image'
|
|
50
|
+
image='https://picsum.photos/1500/400'
|
|
51
|
+
text='Some text here'
|
|
52
|
+
></Jumbotron>
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export const JumbotronWithTextAndBtns = (args) => {
|
|
57
|
+
return (
|
|
58
|
+
<Jumbotron
|
|
59
|
+
altText='image'
|
|
60
|
+
image='https://picsum.photos/1500/400'
|
|
61
|
+
text='Some text here'
|
|
62
|
+
ctaText='This is a button'
|
|
63
|
+
ctaText2='This is another button'
|
|
64
|
+
></Jumbotron>
|
|
65
|
+
)
|
|
66
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { useState } from 'react'
|
|
2
|
+
import Profile from './Profile'
|
|
3
|
+
import Search from './Search'
|
|
4
|
+
|
|
5
|
+
const Header = ({
|
|
6
|
+
links,
|
|
7
|
+
navPosition,
|
|
8
|
+
alignNavAndLogo,
|
|
9
|
+
navClass,
|
|
10
|
+
navLinkClass,
|
|
11
|
+
logoClass,
|
|
12
|
+
showSearch,
|
|
13
|
+
showProfile,
|
|
14
|
+
}) => {
|
|
15
|
+
const [mobileMenuState, setmobileMenuState] = useState(false)
|
|
16
|
+
const profileLinks = [
|
|
17
|
+
{ name: 'PROFILE ITEM 1', reference: '/' },
|
|
18
|
+
{ name: 'PROFILE ITEM 2', reference: '/' },
|
|
19
|
+
{ name: 'PROFILE ITEM 3', reference: '/' },
|
|
20
|
+
{ name: 'PROFILE ITEM 4', reference: '/' },
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
let combinedLogoClass = logoClass + ' hidden sm:inline-flex flex-1 flex items-center justify-center sm:items-stretch '
|
|
24
|
+
let combinedMobileLogoClass = logoClass + ' sm:hidden block flex-1 flex items-center justify-center sm:items-stretch '
|
|
25
|
+
let linkContainerClass = 'flex-1 flex items-center justify-center sm:items-stretch '
|
|
26
|
+
|
|
27
|
+
if (alignNavAndLogo) {
|
|
28
|
+
combinedLogoClass = ' hidden sm:inline-flex pl-4 pt-8 absolute inset-y-0 h-8 left-0 flex items-center'
|
|
29
|
+
} else {
|
|
30
|
+
combinedLogoClass += ' flex-1'
|
|
31
|
+
}
|
|
32
|
+
if (navPosition === '0') {linkContainerClass += 'sm:justify-start'}
|
|
33
|
+
if (navPosition === '1') {linkContainerClass += 'sm:justify-center'}
|
|
34
|
+
if (navPosition === '2') {linkContainerClass += 'sm:justify-end'}
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<nav id='nav' className={navClass}>
|
|
38
|
+
<div className="px-4">
|
|
39
|
+
<div id='sm-nav' className="relative flex items-center justify-between h-16 sm:hidden">
|
|
40
|
+
{/* Nav collapse icon */}
|
|
41
|
+
<div id='nav-collapse-btn-wrapper' className="absolute inset-y-0 left-0 flex items-center">
|
|
42
|
+
<button onClick={() => setmobileMenuState(!mobileMenuState)} type="button" className="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-black hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-white" aria-controls="mobile-menu" aria-expanded="false">
|
|
43
|
+
<svg className="block h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
|
|
44
|
+
<path d="M4 6h16M4 12h16M4 18h16" />
|
|
45
|
+
</svg>
|
|
46
|
+
<svg className="hidden h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
|
|
47
|
+
<path d="M6 18L18 6M6 6l12 12" />
|
|
48
|
+
</svg>
|
|
49
|
+
</button>
|
|
50
|
+
</div>
|
|
51
|
+
{/* Logo */}
|
|
52
|
+
<div id='logo' className={combinedMobileLogoClass}>
|
|
53
|
+
<img className="h-8 w-auto" src="logo.png" alt=" Logo "/>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
<div clas Name='hidden sm:block pt-2 items-center justify-between sm:items-stretch text-center'>
|
|
57
|
+
{/* Logo */}
|
|
58
|
+
<div id='logo' className={combinedLogoClass}>
|
|
59
|
+
<img className="h-8 w-auto" src="logo.png" alt=" Logo "/>
|
|
60
|
+
</div>
|
|
61
|
+
{/* Nav items desktop */}
|
|
62
|
+
<div id='nav-container' className={linkContainerClass}>
|
|
63
|
+
<div id='nav-block' className="hidden sm:inline-flex sm:ml-6">
|
|
64
|
+
<ul id='nav-list' className='list-none mx-auto flex flex-1'>
|
|
65
|
+
{links && links.map((link) => {
|
|
66
|
+
return <li key={link.name} className='flex px-4' onClick={link.onClick}>
|
|
67
|
+
<a className={navLinkClass} href={link.reference}>{link.name}</a>
|
|
68
|
+
</li>
|
|
69
|
+
}) }
|
|
70
|
+
</ul>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
{/* Search */}
|
|
74
|
+
{showSearch &&
|
|
75
|
+
<Search className='hidden sm:inline-flex pl-4 pt-8 absolute inset-y-0 h-8 right-16 flex items-center'></Search>
|
|
76
|
+
}
|
|
77
|
+
{/* Profile Button */}
|
|
78
|
+
{showProfile &&
|
|
79
|
+
<Profile
|
|
80
|
+
profileLinks={profileLinks}
|
|
81
|
+
></Profile>
|
|
82
|
+
}
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
{/* Mobile Links */}
|
|
86
|
+
{mobileMenuState &&
|
|
87
|
+
<div className="sm:hidden" id="mobile-menu">
|
|
88
|
+
{showProfile && <img className="ml-3 h-8 w-8 rounded-full" src="user.jpeg" alt=""/>}
|
|
89
|
+
|
|
90
|
+
{/* Search */}
|
|
91
|
+
{showSearch &&
|
|
92
|
+
<Search className='flex flex-1 ml-4'></Search>
|
|
93
|
+
}
|
|
94
|
+
<div className="px-2 pt-2 pb-3 space-y-1">
|
|
95
|
+
{links && links.map((link) => {
|
|
96
|
+
return <a key={link.name} href={link.reference} className="text-gray-300 hover:bg-gray-700 hover:text-white block px-3 py-2 rounded-md text-base font-medium" aria-current="page">{link.name}</a>
|
|
97
|
+
})}
|
|
98
|
+
{showProfile &&
|
|
99
|
+
profileLinks && profileLinks.map((link) => {
|
|
100
|
+
return <a key={link.name} href={link.reference} className="text-gray-300 hover:bg-gray-700 hover:text-white block px-3 py-2 rounded-md text-base font-medium" role="menuitem" tabindex="-1" id="user-menu-item-0">{link.name}</a>
|
|
101
|
+
})}
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
}
|
|
105
|
+
</nav>
|
|
106
|
+
)
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export default Header
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {useState} from 'react'
|
|
2
|
+
|
|
3
|
+
const Profile = ({
|
|
4
|
+
profileLinks,
|
|
5
|
+
}) => {
|
|
6
|
+
const [profileState, setProfileState] = useState(false)
|
|
7
|
+
return (
|
|
8
|
+
<>
|
|
9
|
+
<div className="hidden sm:inline-flex pt-8 absolute inset-y-0 h-8 right-4 flex items-center">
|
|
10
|
+
<button onClick={() => setProfileState(!profileState)} type="button" className="bg-gray-800 flex rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white" >
|
|
11
|
+
<img className="h-10 w-10 rounded-full" src="user.jpeg" alt=""/>
|
|
12
|
+
</button>
|
|
13
|
+
</div>
|
|
14
|
+
{profileState &&
|
|
15
|
+
<div className="w-48 right-4 absolute rounded-md shadow-lg bg-white" >
|
|
16
|
+
{profileLinks && profileLinks.map((link,i) => {
|
|
17
|
+
return <a href={link.reference} className="block px-4 py-2 text-sm text-gray-700" role="menuitem" tabindex="-1" id={"user-menu-item-" + i}>{link.name}</a>
|
|
18
|
+
})}
|
|
19
|
+
</div>
|
|
20
|
+
}
|
|
21
|
+
</>
|
|
22
|
+
)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export default Profile
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import Icon from './Icon/Icon'
|
|
2
|
+
const Search = ({
|
|
3
|
+
className,
|
|
4
|
+
onChange,
|
|
5
|
+
placeholder,
|
|
6
|
+
text,
|
|
7
|
+
leftIcon,
|
|
8
|
+
}) => {
|
|
9
|
+
let classes = className + ' flex'
|
|
10
|
+
let iconLeft = <Icon type={leftIcon}></Icon>
|
|
11
|
+
return (
|
|
12
|
+
<div id='search' className={classes}>
|
|
13
|
+
{text && (<h2>{text}</h2>)}
|
|
14
|
+
{/* <input className="ml-4 border-2 border-gray-300 bg-white h-10 px-5 pr-16 rounded-lg text-sm focus:outline-none" type="search" name="search" onChange={(e) => onChange(e.target.value)} placeholder={placeholder}/> */}
|
|
15
|
+
<label className="relative block">
|
|
16
|
+
<span className="sr-only">Search</span>
|
|
17
|
+
<span className="absolute inset-y-0 left-5 flex items-center pl-2">
|
|
18
|
+
{leftIcon && iconLeft}
|
|
19
|
+
</span>
|
|
20
|
+
<input className="ml-4 pr-32 border-2 border-gray-300 h-10 px-5 placeholder:italic placeholder:text-gray-400 rounded-md py-2 pl-9 focus:outline-none focus:border-sky-500 focus:ring-sky-500 focus:ring-1" onChange={(e) => onChange(e.target.value)} placeholder={placeholder} type="text" name="search"/>
|
|
21
|
+
</label>
|
|
22
|
+
</div>
|
|
23
|
+
)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export default Search
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const LinksList = ({links}) => {
|
|
2
|
+
return (
|
|
3
|
+
<div className='container flex'>
|
|
4
|
+
<ul className='list-none mx-auto flex flex-1'>
|
|
5
|
+
{links && links.map((link) => {
|
|
6
|
+
return <li className='flex px-4'><a className='flex-1' href={link.url}>{link.name}</a></li>
|
|
7
|
+
})}
|
|
8
|
+
</ul>
|
|
9
|
+
</div>
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default LinksList
|
package/src/index.css
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
@tailwind base;
|
|
2
|
+
@tailwind components;
|
|
3
|
+
@tailwind utilities;
|
|
4
|
+
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css');
|
|
5
|
+
|
|
6
|
+
.right-arrow {
|
|
7
|
+
@apply w-0;
|
|
8
|
+
@apply h-0;
|
|
9
|
+
border-top: 17px solid transparent;
|
|
10
|
+
border-bottom: 17px solid transparent;
|
|
11
|
+
border-left: 15px solid theme('colors.brand-border');
|
|
12
|
+
@apply absolute;
|
|
13
|
+
right: -15px;
|
|
14
|
+
@apply top-0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.let-arrow {
|
|
18
|
+
@apply w-0;
|
|
19
|
+
@apply h-0;
|
|
20
|
+
border-top: 17px solid transparent;
|
|
21
|
+
border-bottom: 17px solid transparent;
|
|
22
|
+
border-left: 17px solid theme('colors.white');
|
|
23
|
+
@apply absolute;
|
|
24
|
+
left: 0px;
|
|
25
|
+
@apply top-0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.test-arrow {
|
|
29
|
+
@apply w-0;
|
|
30
|
+
@apply h-0;
|
|
31
|
+
border-top: 17px solid transparent;
|
|
32
|
+
border-bottom: 17px solid transparent;
|
|
33
|
+
border-left: 15px solid theme('colors.brand-border');
|
|
34
|
+
@apply absolute;
|
|
35
|
+
left: -8px;
|
|
36
|
+
bottom: -11px;
|
|
37
|
+
transform: rotate(48deg);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.test-arrow-top {
|
|
41
|
+
@apply w-0;
|
|
42
|
+
@apply h-0;
|
|
43
|
+
border-top: 15px solid theme('colors.brand-border');
|
|
44
|
+
border-bottom: 17px solid transparent;
|
|
45
|
+
border-left: 17px solid transparent;
|
|
46
|
+
@apply absolute;
|
|
47
|
+
left: -17px;
|
|
48
|
+
top: 0px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.voucherCode__btn {
|
|
52
|
+
@apply relative;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.voucherCode__btn:hover .right-arrow {
|
|
56
|
+
border-left-color: theme('colors.brand-primary');
|
|
57
|
+
}
|
|
58
|
+
.voucherCode__btn:hover .test-arrow {
|
|
59
|
+
border-left-color: theme('colors.brand-primary');
|
|
60
|
+
}
|
|
61
|
+
.voucherCode__btn:hover .test-arrow-top {
|
|
62
|
+
border-top-color: theme('colors.brand-primary');
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.voucherCode__code:focus {
|
|
66
|
+
@apply border-0;
|
|
67
|
+
}
|
package/src/index.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
purge: [],
|
|
3
|
+
darkMode: false, // or 'media' or 'class'
|
|
4
|
+
theme: {
|
|
5
|
+
fontFamily: {
|
|
6
|
+
'base': ['GothamRounded-Book', 'Helvetica', 'Arial', 'sans-serif'],
|
|
7
|
+
'base-medium': [
|
|
8
|
+
'GothamRounded-Medium',
|
|
9
|
+
'Helvetica',
|
|
10
|
+
'Arial',
|
|
11
|
+
'sans-serif',
|
|
12
|
+
],
|
|
13
|
+
'base-bold': [
|
|
14
|
+
'GothamRounded-Bold',
|
|
15
|
+
'Helvetica',
|
|
16
|
+
'Arial',
|
|
17
|
+
'sans-serif',
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
fontSize: {
|
|
21
|
+
'xs': '.579rem',
|
|
22
|
+
'sm': '.694rem',
|
|
23
|
+
'tiny': '.833rem',
|
|
24
|
+
'base': '1rem',
|
|
25
|
+
'lg': '1.2rem',
|
|
26
|
+
'xl': '1.44rem',
|
|
27
|
+
'2xl': '1.728rem',
|
|
28
|
+
'3xl': '2.074rem',
|
|
29
|
+
'4xl': '2.488rem',
|
|
30
|
+
},
|
|
31
|
+
colors: {
|
|
32
|
+
'transparent': 'transparent',
|
|
33
|
+
'white': '#ffffff',
|
|
34
|
+
'black': '#000000',
|
|
35
|
+
'red': '#bb0a1e',
|
|
36
|
+
'brand-primary': '#e6006f',
|
|
37
|
+
'brand-secondary': '#008576',
|
|
38
|
+
'brand-highlight': '#000046',
|
|
39
|
+
'brand-symbolic': '#00BEBE',
|
|
40
|
+
'brand-neutral': '#495c63',
|
|
41
|
+
'brand-primary-strict': '#ff007d',
|
|
42
|
+
'brand-border': '#d0d0d0',
|
|
43
|
+
'brand-border-lightest': '#eeeeee',
|
|
44
|
+
'brand-border-light': '#D8D8D8',
|
|
45
|
+
'brand-border-dark': '#616161',
|
|
46
|
+
'brand-error': '#B11013',
|
|
47
|
+
'brand-error-light': '#ffd9d9',
|
|
48
|
+
'brand-warning': '#FFD35C',
|
|
49
|
+
'brand-info-light': '#d8eaf5',
|
|
50
|
+
'brand-success-light': '#e7f5e7',
|
|
51
|
+
'brand-light-grey': '#f3f3f3',
|
|
52
|
+
'brand-success': '#69C364',
|
|
53
|
+
'brand-confirmed': '#378433',
|
|
54
|
+
'brand-link': '#006EBE',
|
|
55
|
+
'brand-prompt': '#ebf7f7',
|
|
56
|
+
'brand-gradient':
|
|
57
|
+
'linear-gradient(150deg, #1b3165 0%,#1a3768 55%,#00a9a9 100%)',
|
|
58
|
+
'social-facebook': '#3b5999',
|
|
59
|
+
'social-whatsapp': '#25d366',
|
|
60
|
+
'social-twitter': '#55acee',
|
|
61
|
+
'transparent-black': 'rgba(0,0,0,0.6)',
|
|
62
|
+
},
|
|
63
|
+
extend: {},
|
|
64
|
+
},
|
|
65
|
+
variants: {
|
|
66
|
+
extend: {},
|
|
67
|
+
},
|
|
68
|
+
plugins: [],
|
|
69
|
+
}
|