circletone.mjs 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. import * as colors from 'tailwindcss/colors';
  2. import * as i0 from '@angular/core';
  3. import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
  4. /** @type {import('tailwindcss').Config} */
  5. const tailwindPreset = {
  6. theme: {
  7. //extend: {
  8. darkMode: 'class',
  9. fontFamily: {
  10. primary: 'var(--font-primary)',
  11. title: 'var(--font-title)',
  12. },
  13. colors: {
  14. ...colors,
  15. primary: {
  16. DEFAULT: 'rgb(var(--primary) / <alpha-value>)',
  17. dark: 'rgb(var(--priamry-dark) / <alpha-value>)',
  18. variation: 'rgb(var(--primary-variation) / <alpha-value>)',
  19. 'variation-dark': 'rgb(var(--primary-variation-dark) / <alpha-value>)',
  20. },
  21. secondary: {
  22. DEFAULT: 'rgb(var(--secondary) / <alpha-value>)',
  23. dark: 'rgb(var(--secondary-dark) / <alpha-value>)',
  24. },
  25. background: {
  26. DEFAULT: 'rgb(var(--background) / <alpha-value>)',
  27. dark: 'rgb(var(--background-dark) / <alpha-value>)',
  28. },
  29. surface: {
  30. DEFAULT: 'rgb(var(--surface) / <alpha-value>)',
  31. variation: 'rgb(var(--surface-variation) / <alpha-value>)',
  32. dark: 'rgb(var(--surface-dark) / <alpha-value>)',
  33. 'variation-dark': 'rgb(var(--surface-variation-dark) / <alpha-value>)',
  34. },
  35. accent: {
  36. DEFAULT: 'rgb(var(--accent) / <alpha-value>)',
  37. dark: 'rgb(var(--accent-dark) / <alpha-value>)',
  38. },
  39. on: {
  40. primary: 'rgb(var(--on-primary) / <alpha-value>)',
  41. 'primary-variation': 'rgb(var(--on-primary-variation) / <alpha-value>)',
  42. secondary: 'rgb(var(--on-secondary) / <alpha-value>)',
  43. 'secondary-variation': 'rgb(var(--on-secondary-variation) / <alpha-value>)',
  44. accent: 'rgb(var(--on-accent) / <alpha-value>)',
  45. background: 'rgb(var(--on-background) / <alpha-value>)',
  46. 'background-variation': 'rgb(var(--on-background-variation) / <alpha-value>)',
  47. surface: 'rgb(var(--on-surface) / <alpha-value>)',
  48. 'surface-variation': 'rgb(var(--on-surface-variation) / <alpha-value>)',
  49. 'primary-dark': 'rgb(var(--on-primary-dark) / <alpha-value>)',
  50. 'primary-variation-dark': 'rgb(var(--on-primary-variation-dark) / <alpha-value>)',
  51. 'secondary-dark': 'rgb(var(--on-secondary-dark) / <alpha-value>)',
  52. 'secondary-variation-dark': 'rgb(var(--on-secondary-variation-dark) / <alpha-value>)',
  53. 'accent-dark': 'rgb(var(--on-accent-dark) / <alpha-value>)',
  54. 'background-dark': 'rgb(var(--on-background-dark) / <alpha-value>)',
  55. 'background-variation-dark': 'rgb(var(--on-background-variation-dark) / <alpha-value>)',
  56. 'surface-dark': 'rgb(var(--on-surface-dark) / <alpha-value>)',
  57. 'surface-variation-dark': 'rgb(var(--on-surface-variation-dark) / <alpha-value>)',
  58. },
  59. },
  60. },
  61. //},
  62. };
  63. class ButtonComponent {
  64. constructor() {
  65. this.text = '';
  66. this.type = 'default';
  67. }
  68. static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
  69. static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: ButtonComponent, isStandalone: true, selector: "ct-button", inputs: { text: "text", type: "type" }, ngImport: i0, template: "<button class=\"bg-yellow-400 p-4\">{{ text }}</button>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
  70. }
  71. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: ButtonComponent, decorators: [{
  72. type: Component,
  73. args: [{ selector: 'ct-button', standalone: true, imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button class=\"bg-yellow-400 p-4\">{{ text }}</button>\n" }]
  74. }], propDecorators: { text: [{
  75. type: Input,
  76. args: [{ required: true }]
  77. }], type: [{
  78. type: Input
  79. }] } });
  80. /*
  81. * Public API Surface of circletone
  82. */
  83. /**
  84. * Generated bundle index. Do not edit.
  85. */
  86. export { ButtonComponent, tailwindPreset };
  87. //# sourceMappingURL=circletone.mjs.map