@tapcart/mobile-components 0.1.2 → 0.1.4

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.
@@ -1,129 +0,0 @@
1
- "use client"
2
-
3
- import * as React from "react"
4
- import * as ToastPrimitives from "@radix-ui/react-toast"
5
- import { cva, type VariantProps } from "class-variance-authority"
6
- import { X } from "lucide-react"
7
-
8
- import { cn } from "@/lib/utils"
9
-
10
- const ToastProvider = ToastPrimitives.Provider
11
-
12
- const ToastViewport = React.forwardRef<
13
- React.ElementRef<typeof ToastPrimitives.Viewport>,
14
- React.ComponentPropsWithoutRef<typeof ToastPrimitives.Viewport>
15
- >(({ className, ...props }, ref) => (
16
- <ToastPrimitives.Viewport
17
- ref={ref}
18
- className={cn(
19
- "fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
20
- className
21
- )}
22
- {...props}
23
- />
24
- ))
25
- ToastViewport.displayName = ToastPrimitives.Viewport.displayName
26
-
27
- const toastVariants = cva(
28
- "group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
29
- {
30
- variants: {
31
- variant: {
32
- default: "border bg-background text-foreground",
33
- destructive:
34
- "destructive group border-destructive bg-destructive text-destructive-foreground",
35
- },
36
- },
37
- defaultVariants: {
38
- variant: "default",
39
- },
40
- }
41
- )
42
-
43
- const Toast = React.forwardRef<
44
- React.ElementRef<typeof ToastPrimitives.Root>,
45
- React.ComponentPropsWithoutRef<typeof ToastPrimitives.Root> &
46
- VariantProps<typeof toastVariants>
47
- >(({ className, variant, ...props }, ref) => {
48
- return (
49
- <ToastPrimitives.Root
50
- ref={ref}
51
- className={cn(toastVariants({ variant }), className)}
52
- {...props}
53
- />
54
- )
55
- })
56
- Toast.displayName = ToastPrimitives.Root.displayName
57
-
58
- const ToastAction = React.forwardRef<
59
- React.ElementRef<typeof ToastPrimitives.Action>,
60
- React.ComponentPropsWithoutRef<typeof ToastPrimitives.Action>
61
- >(({ className, ...props }, ref) => (
62
- <ToastPrimitives.Action
63
- ref={ref}
64
- className={cn(
65
- "inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",
66
- className
67
- )}
68
- {...props}
69
- />
70
- ))
71
- ToastAction.displayName = ToastPrimitives.Action.displayName
72
-
73
- const ToastClose = React.forwardRef<
74
- React.ElementRef<typeof ToastPrimitives.Close>,
75
- React.ComponentPropsWithoutRef<typeof ToastPrimitives.Close>
76
- >(({ className, ...props }, ref) => (
77
- <ToastPrimitives.Close
78
- ref={ref}
79
- className={cn(
80
- "absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
81
- className
82
- )}
83
- toast-close=""
84
- {...props}
85
- >
86
- <X className="h-4 w-4" />
87
- </ToastPrimitives.Close>
88
- ))
89
- ToastClose.displayName = ToastPrimitives.Close.displayName
90
-
91
- const ToastTitle = React.forwardRef<
92
- React.ElementRef<typeof ToastPrimitives.Title>,
93
- React.ComponentPropsWithoutRef<typeof ToastPrimitives.Title>
94
- >(({ className, ...props }, ref) => (
95
- <ToastPrimitives.Title
96
- ref={ref}
97
- className={cn("text-sm font-semibold", className)}
98
- {...props}
99
- />
100
- ))
101
- ToastTitle.displayName = ToastPrimitives.Title.displayName
102
-
103
- const ToastDescription = React.forwardRef<
104
- React.ElementRef<typeof ToastPrimitives.Description>,
105
- React.ComponentPropsWithoutRef<typeof ToastPrimitives.Description>
106
- >(({ className, ...props }, ref) => (
107
- <ToastPrimitives.Description
108
- ref={ref}
109
- className={cn("text-sm opacity-90", className)}
110
- {...props}
111
- />
112
- ))
113
- ToastDescription.displayName = ToastPrimitives.Description.displayName
114
-
115
- type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>
116
-
117
- type ToastActionElement = React.ReactElement<typeof ToastAction>
118
-
119
- export {
120
- type ToastProps,
121
- type ToastActionElement,
122
- ToastProvider,
123
- ToastViewport,
124
- Toast,
125
- ToastTitle,
126
- ToastDescription,
127
- ToastClose,
128
- ToastAction,
129
- }
@@ -1,35 +0,0 @@
1
- "use client"
2
-
3
- import {
4
- Toast,
5
- ToastClose,
6
- ToastDescription,
7
- ToastProvider,
8
- ToastTitle,
9
- ToastViewport,
10
- } from "@/components/ui/toast"
11
- import { useToast } from "@/components/ui/use-toast"
12
-
13
- export function Toaster() {
14
- const { toasts } = useToast()
15
-
16
- return (
17
- <ToastProvider>
18
- {toasts.map(function ({ id, title, description, action, ...props }) {
19
- return (
20
- <Toast key={id} {...props}>
21
- <div className="grid gap-1">
22
- {title && <ToastTitle>{title}</ToastTitle>}
23
- {description && (
24
- <ToastDescription>{description}</ToastDescription>
25
- )}
26
- </div>
27
- {action}
28
- <ToastClose />
29
- </Toast>
30
- )
31
- })}
32
- <ToastViewport />
33
- </ToastProvider>
34
- )
35
- }
@@ -1,61 +0,0 @@
1
- "use client"
2
-
3
- import * as React from "react"
4
- import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group"
5
- import { VariantProps } from "class-variance-authority"
6
-
7
- import { cn } from "@/lib/utils"
8
- import { toggleVariants } from "@/components/ui/toggle"
9
-
10
- const ToggleGroupContext = React.createContext<
11
- VariantProps<typeof toggleVariants>
12
- >({
13
- size: "default",
14
- variant: "default",
15
- })
16
-
17
- const ToggleGroup = React.forwardRef<
18
- React.ElementRef<typeof ToggleGroupPrimitive.Root>,
19
- React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> &
20
- VariantProps<typeof toggleVariants>
21
- >(({ className, variant, size, children, ...props }, ref) => (
22
- <ToggleGroupPrimitive.Root
23
- ref={ref}
24
- className={cn("flex items-center justify-center gap-1", className)}
25
- {...props}
26
- >
27
- <ToggleGroupContext.Provider value={{ variant, size }}>
28
- {children}
29
- </ToggleGroupContext.Provider>
30
- </ToggleGroupPrimitive.Root>
31
- ))
32
-
33
- ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName
34
-
35
- const ToggleGroupItem = React.forwardRef<
36
- React.ElementRef<typeof ToggleGroupPrimitive.Item>,
37
- React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> &
38
- VariantProps<typeof toggleVariants>
39
- >(({ className, children, variant, size, ...props }, ref) => {
40
- const context = React.useContext(ToggleGroupContext)
41
-
42
- return (
43
- <ToggleGroupPrimitive.Item
44
- ref={ref}
45
- className={cn(
46
- toggleVariants({
47
- variant: context.variant || variant,
48
- size: context.size || size,
49
- }),
50
- className
51
- )}
52
- {...props}
53
- >
54
- {children}
55
- </ToggleGroupPrimitive.Item>
56
- )
57
- })
58
-
59
- ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName
60
-
61
- export { ToggleGroup, ToggleGroupItem }
@@ -1,45 +0,0 @@
1
- "use client"
2
-
3
- import * as React from "react"
4
- import * as TogglePrimitive from "@radix-ui/react-toggle"
5
- import { cva, type VariantProps } from "class-variance-authority"
6
-
7
- import { cn } from "@/lib/utils"
8
-
9
- const toggleVariants = cva(
10
- "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
11
- {
12
- variants: {
13
- variant: {
14
- default: "bg-transparent",
15
- outline:
16
- "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground",
17
- },
18
- size: {
19
- default: "h-10 px-3",
20
- sm: "h-9 px-2.5",
21
- lg: "h-11 px-5",
22
- },
23
- },
24
- defaultVariants: {
25
- variant: "default",
26
- size: "default",
27
- },
28
- }
29
- )
30
-
31
- const Toggle = React.forwardRef<
32
- React.ElementRef<typeof TogglePrimitive.Root>,
33
- React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root> &
34
- VariantProps<typeof toggleVariants>
35
- >(({ className, variant, size, ...props }, ref) => (
36
- <TogglePrimitive.Root
37
- ref={ref}
38
- className={cn(toggleVariants({ variant, size, className }))}
39
- {...props}
40
- />
41
- ))
42
-
43
- Toggle.displayName = TogglePrimitive.Root.displayName
44
-
45
- export { Toggle, toggleVariants }
@@ -1,191 +0,0 @@
1
- "use client"
2
-
3
- // Inspired by react-hot-toast library
4
- import * as React from "react"
5
-
6
- import type { ToastActionElement, ToastProps } from "@/components/ui/toast"
7
-
8
- const TOAST_LIMIT = 1
9
- const TOAST_REMOVE_DELAY = 1000000
10
-
11
- type ToasterToast = ToastProps & {
12
- id: string
13
- title?: React.ReactNode
14
- description?: React.ReactNode
15
- action?: ToastActionElement
16
- }
17
-
18
- const actionTypes = {
19
- ADD_TOAST: "ADD_TOAST",
20
- UPDATE_TOAST: "UPDATE_TOAST",
21
- DISMISS_TOAST: "DISMISS_TOAST",
22
- REMOVE_TOAST: "REMOVE_TOAST",
23
- } as const
24
-
25
- let count = 0
26
-
27
- function genId() {
28
- count = (count + 1) % Number.MAX_SAFE_INTEGER
29
- return count.toString()
30
- }
31
-
32
- type ActionType = typeof actionTypes
33
-
34
- type Action =
35
- | {
36
- type: ActionType["ADD_TOAST"]
37
- toast: ToasterToast
38
- }
39
- | {
40
- type: ActionType["UPDATE_TOAST"]
41
- toast: Partial<ToasterToast>
42
- }
43
- | {
44
- type: ActionType["DISMISS_TOAST"]
45
- toastId?: ToasterToast["id"]
46
- }
47
- | {
48
- type: ActionType["REMOVE_TOAST"]
49
- toastId?: ToasterToast["id"]
50
- }
51
-
52
- interface State {
53
- toasts: ToasterToast[]
54
- }
55
-
56
- const toastTimeouts = new Map<string, ReturnType<typeof setTimeout>>()
57
-
58
- const addToRemoveQueue = (toastId: string) => {
59
- if (toastTimeouts.has(toastId)) {
60
- return
61
- }
62
-
63
- const timeout = setTimeout(() => {
64
- toastTimeouts.delete(toastId)
65
- dispatch({
66
- type: "REMOVE_TOAST",
67
- toastId: toastId,
68
- })
69
- }, TOAST_REMOVE_DELAY)
70
-
71
- toastTimeouts.set(toastId, timeout)
72
- }
73
-
74
- export const reducer = (state: State, action: Action): State => {
75
- switch (action.type) {
76
- case "ADD_TOAST":
77
- return {
78
- ...state,
79
- toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),
80
- }
81
-
82
- case "UPDATE_TOAST":
83
- return {
84
- ...state,
85
- toasts: state.toasts.map((t) =>
86
- t.id === action.toast.id ? { ...t, ...action.toast } : t
87
- ),
88
- }
89
-
90
- case "DISMISS_TOAST": {
91
- const { toastId } = action
92
-
93
- // ! Side effects ! - This could be extracted into a dismissToast() action,
94
- // but I'll keep it here for simplicity
95
- if (toastId) {
96
- addToRemoveQueue(toastId)
97
- } else {
98
- state.toasts.forEach((toast) => {
99
- addToRemoveQueue(toast.id)
100
- })
101
- }
102
-
103
- return {
104
- ...state,
105
- toasts: state.toasts.map((t) =>
106
- t.id === toastId || toastId === undefined
107
- ? {
108
- ...t,
109
- open: false,
110
- }
111
- : t
112
- ),
113
- }
114
- }
115
- case "REMOVE_TOAST":
116
- if (action.toastId === undefined) {
117
- return {
118
- ...state,
119
- toasts: [],
120
- }
121
- }
122
- return {
123
- ...state,
124
- toasts: state.toasts.filter((t) => t.id !== action.toastId),
125
- }
126
- }
127
- }
128
-
129
- const listeners: Array<(state: State) => void> = []
130
-
131
- let memoryState: State = { toasts: [] }
132
-
133
- function dispatch(action: Action) {
134
- memoryState = reducer(memoryState, action)
135
- listeners.forEach((listener) => {
136
- listener(memoryState)
137
- })
138
- }
139
-
140
- type Toast = Omit<ToasterToast, "id">
141
-
142
- function toast({ ...props }: Toast) {
143
- const id = genId()
144
-
145
- const update = (props: ToasterToast) =>
146
- dispatch({
147
- type: "UPDATE_TOAST",
148
- toast: { ...props, id },
149
- })
150
- const dismiss = () => dispatch({ type: "DISMISS_TOAST", toastId: id })
151
-
152
- dispatch({
153
- type: "ADD_TOAST",
154
- toast: {
155
- ...props,
156
- id,
157
- open: true,
158
- onOpenChange: (open) => {
159
- if (!open) dismiss()
160
- },
161
- },
162
- })
163
-
164
- return {
165
- id: id,
166
- dismiss,
167
- update,
168
- }
169
- }
170
-
171
- function useToast() {
172
- const [state, setState] = React.useState<State>(memoryState)
173
-
174
- React.useEffect(() => {
175
- listeners.push(setState)
176
- return () => {
177
- const index = listeners.indexOf(setState)
178
- if (index > -1) {
179
- listeners.splice(index, 1)
180
- }
181
- }
182
- }, [state])
183
-
184
- return {
185
- ...state,
186
- toast,
187
- dismiss: (toastId?: string) => dispatch({ type: "DISMISS_TOAST", toastId }),
188
- }
189
- }
190
-
191
- export { useToast, toast }
@@ -1,27 +0,0 @@
1
- import * as React from "react"
2
- import { cva, type VariantProps } from "class-variance-authority"
3
-
4
- import { cn } from "@/lib/utils"
5
-
6
- const videoVariants = cva("w-full", {
7
- variants: {},
8
- })
9
-
10
- export interface VideoProps
11
- extends React.HTMLAttributes<HTMLVideoElement>,
12
- VariantProps<typeof videoVariants> {}
13
-
14
- function Video({ className, ...props }: VideoProps) {
15
- return (
16
- <video
17
- className={cn(videoVariants({}), className)}
18
- {...props}
19
- autoPlay
20
- playsInline
21
- muted
22
- loop
23
- />
24
- )
25
- }
26
-
27
- export { Video, videoVariants }
package/components.json DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "style": "default",
3
- "rsc": true,
4
- "tailwind": {
5
- "config": "tailwind.config.js",
6
- "css": "styles/globals.css",
7
- "baseColor": "slate",
8
- "cssVariables": true
9
- },
10
- "aliases": {
11
- "components": "@/components",
12
- "utils": "@/lib/utils"
13
- }
14
- }
package/index.tsx DELETED
@@ -1,28 +0,0 @@
1
- import * as React from "react"
2
-
3
- // component exports
4
- export * from "@/components/ui/button"
5
- export * from "@/components/ui/input"
6
- export * from "@/components/ui/aspect-ratio"
7
- export * from "@/components/ui/accordion"
8
- export * from "@/components/ui/icon"
9
- export * from "@/components/ui/carousel"
10
- export * from "@/components/ui/container"
11
- export * from "@/components/ui/grid"
12
- export * from "@/components/ui/label"
13
- export * from "@/components/ui/separator"
14
- export * from "@/components/ui/badge"
15
- export * from "@/components/ui/video"
16
- export * from "@/components/ui/money"
17
- export * from "@/components/ui/skeleton"
18
- export * from "@/components/ui/text"
19
- export * from "@/components/ui/toggle"
20
- export * from "@/components/ui/toggle-group"
21
- export * from "@/components/ui/switch"
22
- export * from "@/components/ui/scroll-area"
23
- export * from "@/components/ui/toast"
24
- export * from "@/components/ui/toaster"
25
- export * from "@/components/ui/use-toast"
26
- export * from "@/components/ThemeToggle"
27
- export { ThemeProvider } from "@/components/ThemeProvider"
28
- export { cn } from "@/lib/utils"
package/lib/utils.ts DELETED
@@ -1,6 +0,0 @@
1
- import { ClassValue, clsx } from "clsx"
2
- import { twMerge } from "tailwind-merge"
3
-
4
- export function cn(...inputs: ClassValue[]) {
5
- return twMerge(clsx(inputs))
6
- }
package/postcss.config.js DELETED
@@ -1,6 +0,0 @@
1
- module.exports = {
2
- plugins: {
3
- tailwindcss: {},
4
- autoprefixer: {},
5
- },
6
- }
@@ -1,146 +0,0 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
4
-
5
- @layer base {
6
- *::-webkit-scrollbar {
7
- display: none;
8
- }
9
- * {
10
- -ms-overflow-style: none; /* IE and Edge */
11
- scrollbar-width: none; /* Firefox */
12
- }
13
-
14
- :root {
15
- --background: 0 0% 100%;
16
- --foreground: 222.2 47.4% 11.2%;
17
-
18
- --muted: 210 40% 96.1%;
19
- --muted-foreground: 215.4 16.3% 46.9%;
20
-
21
- --popover: 0 0% 100%;
22
- --popover-foreground: 222.2 47.4% 11.2%;
23
-
24
- --card: 0 0% 100%;
25
- --card-foreground: 222.2 47.4% 11.2%;
26
-
27
- --border: 214.3 31.8% 91.4%;
28
- --input: 214.3 31.8% 91.4%;
29
-
30
- --primary: 222.2 47.4% 11.2%;
31
- --primary-foreground: 210 40% 98%;
32
-
33
- --secondary: 210 40% 96.1%;
34
- --secondary-foreground: 222.2 47.4% 11.2%;
35
-
36
- --accent: 210 40% 96.1%;
37
- --accent-foreground: 222.2 47.4% 11.2%;
38
-
39
- --destructive: 0 100% 50%;
40
- --destructive-foreground: 210 40% 98%;
41
-
42
- --ring: 215 20.2% 65.1%;
43
-
44
- --radius: 0.5rem;
45
-
46
- --coreColors-pageColor: #ffffff;
47
- --coreColors-shadow: #000000;
48
- --coreColors-brandColorPrimary: #000000;
49
- --coreColors-headerBackground: #ffffffff;
50
- --coreColors-inputBackground: #ffffffff;
51
- --coreColors-modalBackground: #ffffffff;
52
- --coreColors-tabBar: #ffffffff;
53
- --coreColors-dividingLines: #e3e3e3ff;
54
- --coreColors-shadowsEnabled: "true";
55
- --coreColors-primaryIcon: #121212ff;
56
- --coreColors-secondaryIcon: #727272ff;
57
- --coreColors-headerIcon: #121212ff;
58
-
59
- --textColors-primaryColor: #121212ff;
60
- --textColors-secondaryColor: #727272ff;
61
- --textColors-pageTitle: #121212ff;
62
- --textColors-legalText: #727272;
63
- --textColors-productTitle: #727272;
64
- --textColors-priceText: #121212ff;
65
- --textColors-strikethroughPriceText: #727272ff;
66
- --textColors-salePriceText: #d91e18ff;
67
-
68
- --buttonColors-primaryText: #ffffff;
69
- --buttonColors-primaryFill: #000000;
70
- --buttonColors-primaryOutline: #000000;
71
- --buttonColors-primaryShadow: #ffffff;
72
- --buttonColors-disabled: #707070;
73
- --buttonColors-secondaryText: #000000;
74
- --buttonColors-secondaryFill: #ffffff;
75
- --buttonColors-secondaryOutline: #000000;
76
- --buttonColors-secondaryShadow: #ffffff;
77
-
78
- --stateColors-disabled: #707070;
79
- --stateColors-error: #d91e18ff;
80
-
81
- --stateColors-subscriptions: #008000ff;
82
- --stateColors-favorites: #d91e18ff;
83
- --stateColors-reviews: #ffaf02ff;
84
- --stateColors-success: #008000ff;
85
- --stateColors-warning: #ffaf02ff;
86
- --stateColors-skeleton: #e3e3e3ff;
87
-
88
- --productImage-aspectRatio: "2:3";
89
- --productImage-scaling: cover;
90
- --productImage-isCustom: "false";
91
- }
92
- .productImages-scaling {
93
- object-fit: var(--productImage-scaling);
94
- }
95
-
96
- /*.dark {*/
97
- /* --background: 222.2 84% 4.9%;*/
98
- /* --foreground: 210 40% 98%;*/
99
- /* --card: 222.2 84% 4.9%;*/
100
- /* --card-foreground: 210 40% 98%;*/
101
- /* --popover: 222.2 84% 4.9%;*/
102
- /* --popover-foreground: 210 40% 98%;*/
103
- /* --primary: 210 40% 98%;*/
104
- /* --primary-foreground: 222.2 47.4% 11.2%;*/
105
- /* --secondary: 217.2 32.6% 17.5%;*/
106
- /* --secondary-foreground: 210 40% 98%;*/
107
- /* --muted: 217.2 32.6% 17.5%;*/
108
- /* --muted-foreground: 215 20.2% 65.1%;*/
109
- /* --accent: 217.2 32.6% 17.5%;*/
110
- /* --accent-foreground: 210 40% 98%;*/
111
- /* --destructive: 0 62.8% 30.6%;*/
112
- /* --destructive-foreground: 210 40% 98%;*/
113
- /* --border: 217.2 32.6% 17.5%;*/
114
- /* --input: 217.2 32.6% 17.5%;*/
115
- /* --ring: 212.7 26.8% 83.9;*/
116
- /*}*/
117
- }
118
-
119
- @layer base {
120
- * {
121
- @apply border-border;
122
- }
123
- body {
124
- @apply bg-background text-foreground;
125
- font-feature-settings: "rlig" 1, "calt" 1;
126
- }
127
- }
128
-
129
- @layer utilities {
130
- /* Hide scrollbar for Chrome, Safari and Opera */
131
- .no-scrollbar *::-webkit-scrollbar {
132
- display: none;
133
- }
134
- /* Hide scrollbar for IE, Edge and Firefox */
135
- .no-scrollbar * {
136
- -ms-overflow-style: none; /* IE and Edge */
137
- scrollbar-width: none; /* Firefox */
138
- }
139
- .container {
140
- padding-right: 16px;
141
- padding-left: 16px;
142
- }
143
- *:hover {
144
- text-decoration-line: unset !important;
145
- }
146
- }