Create a CSS style using kotlinx.css, setting the text color to green and the background color to yellow.
Instructions:
- Import the necessary package
kotlinx.css. - Declare the function
cssStyle()that returns aCssBuilder. - Inside the
cssStyle()function, useapplyon theCssBuilderobject to apply styles:- Set the text color (
color) to green (Color.green). - Set the background color (
backgroundColor) to yellow (Color.yellow).
- Set the text color (
- In the
main()function, call thecssStyle()function and store the result in thebasicStylevariable. - Print the string representation of
basicStyleusingprintln.