AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. @import 'tailwindcss';
  2. @import 'tw-animate-css';
  3. @source '../views';
  4. @source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
  5. @custom-variant dark (&:is(.dark *));
  6. @theme {
  7. --font-sans:
  8. 'Instrument Sans', ui-sans-serif, system-ui, sans-serif,
  9. 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
  10. 'Noto Color Emoji';
  11. --radius-lg: var(--radius);
  12. --radius-md: calc(var(--radius) - 2px);
  13. --radius-sm: calc(var(--radius) - 4px);
  14. --color-background: var(--background);
  15. --color-foreground: var(--foreground);
  16. --color-card: var(--card);
  17. --color-card-foreground: var(--card-foreground);
  18. --color-popover: var(--popover);
  19. --color-popover-foreground: var(--popover-foreground);
  20. --color-primary: var(--primary);
  21. --color-primary-foreground: var(--primary-foreground);
  22. --color-secondary: var(--secondary);
  23. --color-secondary-foreground: var(--secondary-foreground);
  24. --color-muted: var(--muted);
  25. --color-muted-foreground: var(--muted-foreground);
  26. --color-accent: var(--accent);
  27. --color-accent-foreground: var(--accent-foreground);
  28. --color-destructive: var(--destructive);
  29. --color-destructive-foreground: var(--destructive-foreground);
  30. --color-border: var(--border);
  31. --color-input: var(--input);
  32. --color-ring: var(--ring);
  33. --color-chart-1: var(--chart-1);
  34. --color-chart-2: var(--chart-2);
  35. --color-chart-3: var(--chart-3);
  36. --color-chart-4: var(--chart-4);
  37. --color-chart-5: var(--chart-5);
  38. --color-sidebar: var(--sidebar);
  39. --color-sidebar-foreground: var(--sidebar-foreground);
  40. --color-sidebar-primary: var(--sidebar-primary);
  41. --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  42. --color-sidebar-accent: var(--sidebar-accent);
  43. --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  44. --color-sidebar-border: var(--sidebar-border);
  45. --color-sidebar-ring: var(--sidebar-ring);
  46. }
  47. :root {
  48. --background: oklch(1 0 0);
  49. --foreground: oklch(0.145 0 0);
  50. --card: oklch(1 0 0);
  51. --card-foreground: oklch(0.145 0 0);
  52. --popover: oklch(1 0 0);
  53. --popover-foreground: oklch(0.145 0 0);
  54. --primary: oklch(0.205 0 0);
  55. --primary-foreground: oklch(0.985 0 0);
  56. --secondary: oklch(0.97 0 0);
  57. --secondary-foreground: oklch(0.205 0 0);
  58. --muted: oklch(0.97 0 0);
  59. --muted-foreground: oklch(0.556 0 0);
  60. --accent: oklch(0.97 0 0);
  61. --accent-foreground: oklch(0.205 0 0);
  62. --destructive: oklch(0.577 0.245 27.325);
  63. --destructive-foreground: oklch(0.577 0.245 27.325);
  64. --border: oklch(0.922 0 0);
  65. --input: oklch(0.922 0 0);
  66. --ring: oklch(0.87 0 0);
  67. --chart-1: oklch(0.646 0.222 41.116);
  68. --chart-2: oklch(0.6 0.118 184.704);
  69. --chart-3: oklch(0.398 0.07 227.392);
  70. --chart-4: oklch(0.828 0.189 84.429);
  71. --chart-5: oklch(0.769 0.188 70.08);
  72. --radius: 0.625rem;
  73. --sidebar: oklch(0.985 0 0);
  74. --sidebar-foreground: oklch(0.145 0 0);
  75. --sidebar-primary: oklch(0.205 0 0);
  76. --sidebar-primary-foreground: oklch(0.985 0 0);
  77. --sidebar-accent: oklch(0.97 0 0);
  78. --sidebar-accent-foreground: oklch(0.205 0 0);
  79. --sidebar-border: oklch(0.922 0 0);
  80. --sidebar-ring: oklch(0.87 0 0);
  81. }
  82. .dark {
  83. --background: oklch(0.145 0 0);
  84. --foreground: oklch(0.985 0 0);
  85. --card: oklch(0.145 0 0);
  86. --card-foreground: oklch(0.985 0 0);
  87. --popover: oklch(0.145 0 0);
  88. --popover-foreground: oklch(0.985 0 0);
  89. --primary: oklch(0.985 0 0);
  90. --primary-foreground: oklch(0.205 0 0);
  91. --secondary: oklch(0.269 0 0);
  92. --secondary-foreground: oklch(0.985 0 0);
  93. --muted: oklch(0.269 0 0);
  94. --muted-foreground: oklch(0.708 0 0);
  95. --accent: oklch(0.269 0 0);
  96. --accent-foreground: oklch(0.985 0 0);
  97. --destructive: oklch(0.396 0.141 25.723);
  98. --destructive-foreground: oklch(0.637 0.237 25.331);
  99. --border: oklch(0.269 0 0);
  100. --input: oklch(0.269 0 0);
  101. --ring: oklch(0.439 0 0);
  102. --chart-1: oklch(0.488 0.243 264.376);
  103. --chart-2: oklch(0.696 0.17 162.48);
  104. --chart-3: oklch(0.769 0.188 70.08);
  105. --chart-4: oklch(0.627 0.265 303.9);
  106. --chart-5: oklch(0.645 0.246 16.439);
  107. --sidebar: oklch(0.205 0 0);
  108. --sidebar-foreground: oklch(0.985 0 0);
  109. --sidebar-primary: oklch(0.985 0 0);
  110. --sidebar-primary-foreground: oklch(0.985 0 0);
  111. --sidebar-accent: oklch(0.269 0 0);
  112. --sidebar-accent-foreground: oklch(0.985 0 0);
  113. --sidebar-border: oklch(0.269 0 0);
  114. --sidebar-ring: oklch(0.439 0 0);
  115. }
  116. @layer base {
  117. * {
  118. @apply border-border outline-ring/50;
  119. }
  120. body {
  121. @apply bg-background text-foreground;
  122. }
  123. }
  124. /*
  125. * Overview page (resources/js/pages/dashboard.tsx). Our own colours from the home page:
  126. * pandan green, kunyit yellow and bunga red, with a dark version for dark mode.
  127. */
  128. .overview {
  129. --ov-paper: #f2f6f1;
  130. --ov-card: #ffffff;
  131. --ov-ink: #10241c;
  132. --ov-muted: #4e6158;
  133. --ov-line: #d6e1d8;
  134. --ov-hover: #e7efe9;
  135. --ov-pandan: #1d6a4c;
  136. --ov-pandan-ink: #14553c;
  137. --ov-pandan-soft: #dcebe1;
  138. --ov-hero: #1d6a4c;
  139. --ov-pulse: #0f3d2c;
  140. --ov-kunyit: #f2b33d;
  141. --ov-kunyit-soft: #fcefcf;
  142. --ov-kunyit-ink: #7a5208;
  143. --ov-bunga: #e3573f;
  144. --ov-bunga-soft: #fbe3de;
  145. --ov-bunga-ink: #a3321f;
  146. --ov-prev: #9db0a5;
  147. background-color: var(--ov-paper);
  148. color: var(--ov-ink);
  149. }
  150. .dark .overview {
  151. --ov-paper: #0d1712;
  152. --ov-card: #14221b;
  153. --ov-ink: #e7f0ea;
  154. --ov-muted: #9bb0a4;
  155. --ov-line: #26382e;
  156. --ov-hover: #1b2d24;
  157. --ov-pandan: #3fa57a;
  158. --ov-pandan-ink: #7fd1a9;
  159. --ov-pandan-soft: #1a3327;
  160. --ov-hero: #1d6a4c;
  161. --ov-pulse: #123f2e;
  162. --ov-kunyit-soft: #3a2e12;
  163. --ov-kunyit-ink: #f5c866;
  164. --ov-bunga: #ee6a52;
  165. --ov-bunga-soft: #3d1e18;
  166. --ov-bunga-ink: #f79a88;
  167. --ov-prev: #5e7468;
  168. }
  169. .ov-heading {
  170. font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  171. letter-spacing: -0.015em;
  172. }
  173. @media (prefers-reduced-motion: no-preference) {
  174. .ov-rise {
  175. animation: ov-rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  176. }
  177. .ov-spin {
  178. animation: ov-spin 2.6s linear infinite;
  179. }
  180. .ov-caret {
  181. animation: ov-caret 1s step-end infinite;
  182. }
  183. .ov-lift {
  184. transition: transform 0.2s;
  185. }
  186. .ov-lift:hover {
  187. transform: translateY(-3px);
  188. }
  189. }
  190. @keyframes ov-rise {
  191. from {
  192. opacity: 0;
  193. transform: translateY(14px);
  194. }
  195. }
  196. @keyframes ov-spin {
  197. to {
  198. transform: rotate(360deg);
  199. }
  200. }
  201. @keyframes ov-caret {
  202. 50% {
  203. opacity: 0;
  204. }
  205. }
  206. /*
  207. * Storefront. Colours, fonts and corner radius come from the store plan as
  208. * --sf-* variables (see resources/js/storefront/theme.ts), so a storefront
  209. * never picks up the dashboard's light or dark theme.
  210. */
  211. /*
  212. * Starting values. Each store's own colours and fonts are set on the same element by
  213. * theme.ts (as an inline style), which always wins over these. They are here so the
  214. * variables are never empty, and so code editors can see that they exist.
  215. */
  216. .sf-root {
  217. --sf-bg: #ffffff;
  218. --sf-surface: #f5f5f4;
  219. --sf-fg: #1c1917;
  220. --sf-muted: #57534e;
  221. --sf-primary: #1c1917;
  222. --sf-primary-fg: #ffffff;
  223. --sf-accent: #a8a29e;
  224. --sf-border: #e7e5e4;
  225. --sf-radius: 0.5rem;
  226. --sf-radius-card: 0.75rem;
  227. --sf-font-heading: ui-sans-serif, system-ui, sans-serif;
  228. --sf-font-body: ui-sans-serif, system-ui, sans-serif;
  229. background-color: var(--sf-bg);
  230. color: var(--sf-fg);
  231. font-family: var(--sf-font-body), sans-serif;
  232. scroll-behavior: smooth;
  233. }
  234. .sf-heading {
  235. font-family: var(--sf-font-heading), sans-serif;
  236. letter-spacing: -0.015em;
  237. }
  238. /* Clicking a menu link glides to that section instead of jumping. */
  239. @media (prefers-reduced-motion: no-preference) {
  240. html:has(.sf-root) {
  241. scroll-behavior: smooth;
  242. }
  243. }
  244. /* A soft fade for content that swaps in place, such as announcement bar messages. */
  245. @media (prefers-reduced-motion: no-preference) {
  246. .sf-fade-in {
  247. animation: sf-fade-in 0.4s ease-out;
  248. }
  249. }
  250. @keyframes sf-fade-in {
  251. from {
  252. opacity: 0;
  253. transform: translateY(2px);
  254. }
  255. }
  256. /* On phones, the product page's add-to-cart bar sits at the bottom; the WhatsApp button moves above it. */
  257. @media (max-width: 767px) {
  258. .sf-sticky-cart .sf-whatsapp {
  259. bottom: 5.5rem;
  260. }
  261. }
  262. /*
  263. * Store styles (theme.style in the store plan). The storefront root carries data-buttons, data-cards,
  264. * data-spacing, data-headings, data-backgrounds and data-motion; components only carry the classes
  265. * sf-btn-primary, sf-btn-outline, sf-card, sf-section and sf-band. "Normal" values change nothing, so
  266. * stores without a style look as they always did.
  267. */
  268. /* Buttons: outline */
  269. .sf-root[data-buttons='outline'] .sf-btn-primary {
  270. background-color: transparent;
  271. color: var(--sf-primary);
  272. box-shadow: inset 0 0 0 1.5px var(--sf-primary);
  273. }
  274. .sf-root[data-buttons='outline'] .sf-btn-primary:hover:not(:disabled) {
  275. background-color: var(--sf-primary);
  276. color: var(--sf-primary-fg);
  277. opacity: 1;
  278. }
  279. /* On a full-width photo an outline button would vanish, so it stays solid there. */
  280. .sf-root[data-buttons='outline'] .sf-on-photo .sf-btn-primary {
  281. background-color: var(--sf-primary);
  282. color: var(--sf-primary-fg);
  283. box-shadow: none;
  284. }
  285. /* Buttons: shadow (a solid offset shadow that presses in when clicked) */
  286. .sf-root[data-buttons='shadow'] :is(.sf-btn-primary, .sf-btn-outline) {
  287. border: 2px solid var(--sf-fg);
  288. box-shadow: 3px 3px 0 var(--sf-fg);
  289. transition:
  290. transform 0.15s ease,
  291. box-shadow 0.15s ease;
  292. }
  293. .sf-root[data-buttons='shadow']
  294. :is(.sf-btn-primary, .sf-btn-outline):hover:not(:disabled) {
  295. opacity: 1;
  296. transform: translate(-1px, -1px);
  297. box-shadow: 4px 4px 0 var(--sf-fg);
  298. }
  299. .sf-root[data-buttons='shadow']
  300. :is(.sf-btn-primary, .sf-btn-outline):active:not(:disabled) {
  301. transform: translate(2px, 2px);
  302. box-shadow: 1px 1px 0 var(--sf-fg);
  303. }
  304. /* Cards and photos */
  305. .sf-root[data-cards='shadow'] .sf-card {
  306. border-color: transparent;
  307. box-shadow:
  308. 0 1px 2px rgb(0 0 0 / 0.04),
  309. 0 10px 28px -10px rgb(0 0 0 / 0.16);
  310. }
  311. .sf-root[data-cards='plain'] .sf-card {
  312. border-color: transparent;
  313. box-shadow: none;
  314. }
  315. .sf-root[data-cards='hard'] .sf-card {
  316. border: 2px solid var(--sf-fg);
  317. box-shadow: 4px 4px 0 var(--sf-fg);
  318. }
  319. /* Spacing between sections */
  320. .sf-root[data-spacing='compact'] .sf-section {
  321. padding-block: 2.5rem;
  322. }
  323. .sf-root[data-spacing='airy'] .sf-section {
  324. padding-block: 5.5rem;
  325. }
  326. @media (min-width: 768px) {
  327. .sf-root[data-spacing='compact'] .sf-section {
  328. padding-block: 3.5rem;
  329. }
  330. .sf-root[data-spacing='airy'] .sf-section {
  331. padding-block: 8rem;
  332. }
  333. }
  334. /* Headings */
  335. .sf-root[data-headings='uppercase'] .sf-heading {
  336. text-transform: uppercase;
  337. letter-spacing: 0.06em;
  338. font-weight: 500;
  339. }
  340. .sf-root[data-headings='heavy'] .sf-heading {
  341. font-weight: 800;
  342. letter-spacing: -0.03em;
  343. }
  344. /* Backgrounds: every other section on a soft band */
  345. .sf-root[data-backgrounds='alternate'] .sf-band-alt {
  346. background-color: var(--sf-surface);
  347. }
  348. /* Motion: sections below the first screen fade up as they come into view (see reveal.tsx). */
  349. @media (prefers-reduced-motion: no-preference) {
  350. .sf-root[data-motion='gentle'] .sf-band.sf-reveal {
  351. opacity: 0;
  352. transform: translateY(28px);
  353. transition:
  354. opacity 0.7s ease,
  355. transform 0.7s ease;
  356. }
  357. .sf-root[data-motion='gentle'] .sf-band.sf-reveal.sf-revealed {
  358. opacity: 1;
  359. transform: none;
  360. }
  361. .sf-root[data-motion='gentle'] .sf-card {
  362. transition:
  363. transform 0.3s ease,
  364. box-shadow 0.3s ease;
  365. }
  366. .sf-root[data-motion='gentle'] a:hover .sf-card {
  367. transform: translateY(-3px);
  368. }
  369. }
  370. /* Our home page: tags in the hero picture float up and down, out of step with each other. */
  371. @keyframes h-bob {
  372. 0%,
  373. 100% {
  374. translate: 0 0;
  375. }
  376. 50% {
  377. translate: 0 -10px;
  378. }
  379. }
  380. @media (prefers-reduced-motion: no-preference) {
  381. .h-bob {
  382. animation: h-bob 6s ease-in-out infinite;
  383. }
  384. .h-bob-slow {
  385. animation-duration: 8s;
  386. animation-delay: -3s;
  387. }
  388. }
  389. /*
  390. * Our home page: the sample store and the "You write" bubble float slowly. This moves `transform`, so it
  391. * never fights the hover lift (which moves `translate` and `scale`).
  392. */
  393. @keyframes h-float {
  394. 0%,
  395. 100% {
  396. transform: translateY(0);
  397. }
  398. 50% {
  399. transform: translateY(-8px);
  400. }
  401. }
  402. @media (prefers-reduced-motion: no-preference) {
  403. .h-float {
  404. animation: h-float 7s ease-in-out infinite;
  405. }
  406. .h-float-late {
  407. animation-duration: 9s;
  408. animation-delay: -4s;
  409. }
  410. }
  411. /*
  412. * Our home page, more motion (resources/js/components/home/motion.ts). All of it is off when the
  413. * visitor's device asks for less motion.
  414. *
  415. * Fade up: sections below the first screen rise into place. It moves `transform`, and keeps short
  416. * transitions for `translate`, `scale` and shadows so cards still lift smoothly on hover.
  417. */
  418. @media (prefers-reduced-motion: no-preference) {
  419. .h-reveal {
  420. opacity: 0;
  421. transform: translateY(32px);
  422. transition:
  423. opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms),
  424. transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms),
  425. translate 0.3s ease-out,
  426. scale 0.3s ease-out,
  427. box-shadow 0.3s ease-out;
  428. }
  429. .h-reveal.h-revealed {
  430. opacity: 1;
  431. transform: none;
  432. }
  433. /* The AI's "typing" dots in the chat example. */
  434. .h-dot {
  435. animation: h-dot 1s ease-in-out infinite;
  436. }
  437. /* The timer bar under the look that is showing in the styles section. */
  438. .h-bar {
  439. animation: h-bar linear forwards;
  440. }
  441. /* The "Style: Soft" badge pops in when the look changes. */
  442. .h-pop {
  443. animation: h-pop 0.4s ease-out;
  444. }
  445. /* The strip of shop types drifts sideways; hovering stops it so a word can be read. */
  446. .h-marquee {
  447. animation: h-marquee 50s linear infinite;
  448. }
  449. .h-marquee:hover {
  450. animation-play-state: paused;
  451. }
  452. }
  453. @keyframes h-dot {
  454. 0%,
  455. 80%,
  456. 100% {
  457. opacity: 0.3;
  458. translate: 0 0;
  459. }
  460. 40% {
  461. opacity: 1;
  462. translate: 0 -3px;
  463. }
  464. }
  465. @keyframes h-bar {
  466. from {
  467. width: 0;
  468. }
  469. to {
  470. width: 100%;
  471. }
  472. }
  473. @keyframes h-pop {
  474. from {
  475. opacity: 0;
  476. scale: 0.8;
  477. }
  478. }
  479. @keyframes h-marquee {
  480. to {
  481. transform: translateX(-50%);
  482. }
  483. }