Skip to content
On this page

@obewds/obewds-tw-config Component

ES Module Version

ESM version

js
import { twBgPaletteConsole as e } from "@obewds/tw-bg-palette-console";
import { twBgPaletteDefault as o } from "@obewds/tw-bg-palette-default";
import { twBgPaletteMonochromatic as r } from "@obewds/tw-bg-palette-monochromatic";
import { twBgPalettePastel as a } from "@obewds/tw-bg-palette-pastel";
import { twBorderPaletteDefault as l } from "@obewds/tw-border-palette-default";
import { twTextPaletteDefault as m } from "@obewds/tw-text-palette-default";
let n = {
  anchor: {
    base: ""
  },
  bg: {
    base: "",
    palettes: {
      ...e,
      ...o,
      ...r,
      ...a
    }
  },
  border: {
    base: "",
    palettes: {
      ...l
    }
  },
  text: {
    base: "",
    palettes: {
      ...m
    }
  }
};
const s = (...t) => t;
let P = s(
  "anchor",
  "bg",
  "border",
  "button",
  "text"
);
export {
  n as ObewdsTwConfig,
  P as ObewdsTwConfigGroups
};
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

UMD Version

Version used by Node.js (Universal version for Common.js/AMD)

js
(function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("@obewds/tw-bg-palette-console"),require("@obewds/tw-bg-palette-default"),require("@obewds/tw-bg-palette-monochromatic"),require("@obewds/tw-bg-palette-pastel"),require("@obewds/tw-border-palette-default"),require("@obewds/tw-text-palette-default")):typeof define=="function"&&define.amd?define(["exports","@obewds/tw-bg-palette-console","@obewds/tw-bg-palette-default","@obewds/tw-bg-palette-monochromatic","@obewds/tw-bg-palette-pastel","@obewds/tw-border-palette-default","@obewds/tw-text-palette-default"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.ObewdsTwConfig={},e.TwBgPaletteConsole,e.TwBgPaletteDefault,e.TwBgPaletteMonochromatic,e.TwBgPalettePastel,e.TwBorderPaletteDefault,e.TwTextPaletteDefault))})(this,function(e,t,o,a,l,w,s){"use strict";let d={anchor:{base:""},bg:{base:"",palettes:{...t.twBgPaletteConsole,...o.twBgPaletteDefault,...a.twBgPaletteMonochromatic,...l.twBgPalettePastel}},border:{base:"",palettes:{...w.twBorderPaletteDefault}},text:{base:"",palettes:{...s.twTextPaletteDefault}}},r=((...u)=>u)("anchor","bg","border","button","text");e.ObewdsTwConfig=d,e.ObewdsTwConfigGroups=r,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1

CJS Version

CommonJS version

js
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("@obewds/tw-bg-palette-console"),o=require("@obewds/tw-bg-palette-default"),a=require("@obewds/tw-bg-palette-monochromatic"),l=require("@obewds/tw-bg-palette-pastel"),s=require("@obewds/tw-border-palette-default"),r=require("@obewds/tw-text-palette-default");let w={anchor:{base:""},bg:{base:"",palettes:{...t.twBgPaletteConsole,...o.twBgPaletteDefault,...a.twBgPaletteMonochromatic,...l.twBgPalettePastel}},border:{base:"",palettes:{...s.twBorderPaletteDefault}},text:{base:"",palettes:{...r.twTextPaletteDefault}}};const b=(...e)=>e;let u=b("anchor","bg","border","button","text");exports.ObewdsTwConfig=w;exports.ObewdsTwConfigGroups=u;
1

IIFE (Browser) Code

Version used for browser instances

js
var ObewdsTwConfig=function(e,t,a,l,o,w,s){"use strict";let r={anchor:{base:""},bg:{base:"",palettes:{...t.twBgPaletteConsole,...a.twBgPaletteDefault,...l.twBgPaletteMonochromatic,...o.twBgPalettePastel}},border:{base:"",palettes:{...w.twBorderPaletteDefault}},text:{base:"",palettes:{...s.twTextPaletteDefault}}},u=((...n)=>n)("anchor","bg","border","button","text");return e.ObewdsTwConfig=r,e.ObewdsTwConfigGroups=u,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),e}({},TwBgPaletteConsole,TwBgPaletteDefault,TwBgPaletteMonochromatic,TwBgPalettePastel,TwBorderPaletteDefault,TwTextPaletteDefault);
1