-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] #101843 - Allow configuration of color palettes in FormEngi…
…ne (#383) Related: TYPO3-Documentation/Changelog-To-Doc#650 Releases: main
- Loading branch information
1 parent
4053f00
commit 6c3bd4a
Showing
4 changed files
with
118 additions
and
16 deletions.
There are no files selected for viewing
Binary file added
BIN
+20.6 KB
Documentation/Images/ManualScreenshots/ColorPalettes/ColorPalette.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
.. include:: /Includes.rst.txt | ||
|
||
.. index:: | ||
Page TSconfig; colorPalettes | ||
colorPalettes | ||
.. _pagecolorpalettes: | ||
|
||
|
||
============= | ||
colorPalettes | ||
============= | ||
|
||
.. versionadded:: 13.0 | ||
|
||
TYPO3 provides a :ref:`color picker component <t3tca:columns-color>` that | ||
supports color palettes, or swatches. The colors can be configured and assigned | ||
to palettes. This way, for example, colors defined in a corporate design can | ||
be made accessible in an easy way. Multiple color palettes can be configured. | ||
|
||
.. figure:: /Images/ManualScreenshots/ColorPalettes/ColorPalette.png | ||
:alt: Example of a color palette | ||
:class: with-shadow | ||
|
||
Example of a color palette | ||
|
||
Basic syntax | ||
============ | ||
|
||
First, define the colors by name and RGB value: | ||
|
||
.. code-block:: typoscript | ||
:caption: EXT:my_sitepackage/Configuration/page.tsconfig | ||
colorPalettes { | ||
colors { | ||
typo3 { | ||
value = #ff8700 | ||
} | ||
blue { | ||
value = #0080c9 | ||
} | ||
darkgrey { | ||
value = #515151 | ||
} | ||
valid { | ||
value = #5abc55 | ||
} | ||
error { | ||
value = #dd123d | ||
} | ||
} | ||
} | ||
Then assign the colors to your palettes: | ||
|
||
.. code-block:: typoscript | ||
:caption: EXT:my_sitepackage/Configuration/page.tsconfig | ||
colorPalettes { | ||
palettes { | ||
main = typo3 | ||
key_colors = typo3, blue, darkgrey | ||
messages = valid, error | ||
} | ||
} | ||
Now you can assign a color palette to one field, to all fields of a table or | ||
as a global configuration, see | ||
:ref:`TCEFORM.colorPalette <pageTsConfigTceFormColorPalette>`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters