Basic Atoms
Color Atom
public interface ColorAtom : AtomInterface {
public val color: AtomikColor
}
Simply contains a color. This Atom can be used to apply a color to your view. Note that the color applies to the atom, so for a simple view or button, it would be the background color, but with a text atom it would be the text color.
Usage
View
- Android (XML)
- Android (Compose)
- iOS (UIView)
- iOS (SwiftUI)
view.applyColorAtom(yourAtom)
Box(modifier = Modifier.atomikColor(yourAtom))
TODO
TODO
Text
- Android (XML)
- Android (Compose)
- iOS (UIView)
- iOS (SwiftUI)
view.applyColorAtom(yourAtom)
Text(
text = "",
color = yourAtom.color.composeColor
)
TODO
TODO