rt-native 1.0.101 → 1.0.104

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.
Files changed (2) hide show
  1. package/README.md +147 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # `<rt-native>` — Native Web Component Rich Text Editor
2
2
 
3
+ **Author:** Ryan Kueter
4
+ **Updated:** April, 2026
5
+
3
6
  `rt-native.js` HTML Editor is a free native web component that provides accessibility features and a wide variety of elements and customizations that make it one of the most robust and flexible HTML editors available. It allows the programmer to apply custom .css files to the preview window, so see how the content will be displayed in production. The editor uses embedded .svg Google Font Icons and the shadow DOM to isolate the HTML from inheriting the existing page styles. No frameworks, no build step, no dependencies — drop **one script tag** into any HTML page and you're done.
4
7
 
5
8
  ---
@@ -485,6 +488,150 @@ editor.classList.replace('dark', 'ocean');
485
488
  }
486
489
  ```
487
490
 
491
+ ### Fluent 2 Themes
492
+
493
+ Complete ready-to-use implementations of Microsoft's [Fluent 2 Design System](https://fluent2.microsoft.design/). Copy either block into your stylesheet and apply the class to the element.
494
+
495
+ **Fluent 2 Light**
496
+
497
+ ```css
498
+ rt-native.fluent {
499
+ /* Typography */
500
+ --rtb-btn-font: Arial, Helvetica, Verdana, sans-serif;
501
+ --rtb-btn-size: 16px;
502
+
503
+ /* Toolbar */
504
+ --rtb-toolbar-bg: #ffffff;
505
+ --rtb-toolbar-border-style: solid;
506
+ --rtb-toolbar-border-width: 1px;
507
+ --rtb-toolbar-border-color: #d1d1d1;
508
+ --rtb-dropdown-bg: #ffffff;
509
+ --rtb-dropdown-text: #242424;
510
+ --rtb-dropdown-bg-hover: #f5f5f5;
511
+ --rtb-dropdown-text-hover: #242424;
512
+
513
+ /* Buttons */
514
+ --rtb-btn-text: #242424;
515
+ --rtb-btn-bg: transparent;
516
+ --rtb-btn-bg-hover: #e8e8e8;
517
+ --rtb-btn-bg-selected: #dcdcdc;
518
+ --rtb-btn-border-style: none;
519
+ --rtb-btn-border-radius: 4px;
520
+
521
+ /* Content area */
522
+ --rtb-content-text: #242424;
523
+ --rtb-content-size: 1rem;
524
+ --rtb-content-font: Arial, Helvetica, Verdana, sans-serif;
525
+ --rtb-content-bg: #ffffff;
526
+
527
+ /* Editor container */
528
+ --rtb-editor-border-style: solid;
529
+ --rtb-editor-border-width: 1px;
530
+ --rtb-editor-border-color: #d1d1d1;
531
+ --rtb-editor-border-radius: 4px;
532
+ --rtb-editor-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
533
+
534
+ /* Scrollbars */
535
+ --rtb-scroll-width: 6px;
536
+ --rtb-scroll-thumb-bg: #c2c2c2;
537
+ --rtb-scroll-thumb-bg-hover: #8a8a8a;
538
+ --rtb-scroll-thumb-radius: 3px;
539
+
540
+ /* Modals & dialogs */
541
+ --rtb-modal-bg: #ffffff;
542
+ --rtb-modal-text: #242424;
543
+ --rtb-modal-text-size: 1rem;
544
+ --rtb-modal-text-font: Arial, Helvetica, Verdana, sans-serif;
545
+ --rtb-modal-input-bg: #ffffff;
546
+ --rtb-modal-input-text: #242424;
547
+ --rtb-modal-input-border: #d1d1d1;
548
+ --rtb-modal-checkbox: #0078d4;
549
+
550
+ /* Blockquote */
551
+ --rtb-quote-bg: #f0f7ff;
552
+ --rtb-quote-border-color: #0078d4;
553
+ --rtb-quote-border-width: 4px;
554
+
555
+ /* Code blocks */
556
+ --rtb-code-bg: #f5f5f5;
557
+ --rtb-code-border-radius: 4px;
558
+ }
559
+ ```
560
+
561
+ ```html
562
+ <rt-native class="fluent" id="editor" height="400px"></rt-native>
563
+ ```
564
+
565
+ **Fluent 2 Dark**
566
+
567
+ ```css
568
+ rt-native.fluent-dark {
569
+ /* Typography */
570
+ --rtb-btn-font: Arial, Helvetica, Verdana, sans-serif;
571
+ --rtb-btn-size: 16px;
572
+
573
+ /* Toolbar */
574
+ --rtb-toolbar-bg: #292929;
575
+ --rtb-toolbar-border-style: solid;
576
+ --rtb-toolbar-border-width: 1px;
577
+ --rtb-toolbar-border-color: #424242;
578
+ --rtb-dropdown-bg: #292929;
579
+ --rtb-dropdown-text: #ffffff;
580
+ --rtb-dropdown-bg-hover: #2e2e2e;
581
+ --rtb-dropdown-text-hover: #ffffff;
582
+
583
+ /* Buttons */
584
+ --rtb-btn-text: #ffffff;
585
+ --rtb-btn-bg: transparent;
586
+ --rtb-btn-bg-hover: #404040;
587
+ --rtb-btn-bg-selected: #4e4e4e;
588
+ --rtb-btn-border-style: none;
589
+ --rtb-btn-border-radius: 4px;
590
+
591
+ /* Content area */
592
+ --rtb-content-text: #ffffff;
593
+ --rtb-content-size: 1rem;
594
+ --rtb-content-font: Arial, Helvetica, Verdana, sans-serif;
595
+ --rtb-content-bg: #1f1f1f;
596
+
597
+ /* Editor container */
598
+ --rtb-editor-border-style: solid;
599
+ --rtb-editor-border-width: 1px;
600
+ --rtb-editor-border-color: #424242;
601
+ --rtb-editor-border-radius: 4px;
602
+ --rtb-editor-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
603
+
604
+ /* Scrollbars */
605
+ --rtb-scroll-width: 6px;
606
+ --rtb-scroll-thumb-bg: #5c5c5c;
607
+ --rtb-scroll-thumb-bg-hover: #8a8a8a;
608
+ --rtb-scroll-thumb-radius: 3px;
609
+
610
+ /* Modals & dialogs */
611
+ --rtb-modal-bg: #2e2e2e;
612
+ --rtb-modal-text: #ffffff;
613
+ --rtb-modal-text-size: 1rem;
614
+ --rtb-modal-text-font: Arial, Helvetica, Verdana, sans-serif;
615
+ --rtb-modal-input-bg: #1f1f1f;
616
+ --rtb-modal-input-text: #ffffff;
617
+ --rtb-modal-input-border: #424242;
618
+ --rtb-modal-checkbox: #479ef5;
619
+
620
+ /* Blockquote */
621
+ --rtb-quote-bg: #00244a;
622
+ --rtb-quote-border-color: #479ef5;
623
+ --rtb-quote-border-width: 4px;
624
+
625
+ /* Code blocks */
626
+ --rtb-code-bg: #141414;
627
+ --rtb-code-border-radius: 4px;
628
+ }
629
+ ```
630
+
631
+ ```html
632
+ <rt-native class="fluent-dark" id="editor" height="400px"></rt-native>
633
+ ```
634
+
488
635
  ---
489
636
 
490
637
  ## configure() Reference
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rt-native",
3
- "version": "1.0.101",
3
+ "version": "1.0.104",
4
4
  "description": "rt-native HTML Editor is a free native web component that provides accessibility features and a wide variety of elements and customizations that make it one of the most robust and flexible HTML editors available. It allows the programmer to apply custom .css files to the preview window, so see how the content will be displayed in production. The editor uses embedded .svg Google Font Icons and the shadow DOM to isolate the HTML from inheriting the existing page styles. No frameworks, no build step, no dependencies — drop one script tag into any HTML page and you're done.",
5
5
  "main": "rt-native.js",
6
6
  "exports": {